Skip to content

Commit

Permalink
fix build break for 2.6
Browse files Browse the repository at this point in the history
  • Loading branch information
kanakb committed Dec 17, 2013
1 parent ee44dcc commit 91642bb
Showing 1 changed file with 11 additions and 11 deletions.
22 changes: 11 additions & 11 deletions tests/testmockclient.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ def test_create_basic(self):
result = self.c.create(path, 'testData')
self.assertEqual(result, path)
data, metadata = self.c.get(path)
self.assertIsNotNone(metadata)
self.assertTrue(metadata is not None)
self.assertEqual(data, 'testData')

def test_create_recursive(self):
Expand Down Expand Up @@ -68,13 +68,13 @@ def test_ensure_path(self):
path = '/one/two/three/four'
self.c.ensure_path(path)
data, metadata = self.c.get('/one')
self.assertIsNotNone(metadata)
self.assertTrue(metadata is not None)
data, metadata = self.c.get('/one/two')
self.assertIsNotNone(metadata)
self.assertTrue(metadata is not None)
data, metadata = self.c.get('/one/two/three')
self.assertIsNotNone(metadata)
self.assertTrue(metadata is not None)
data, metadata = self.c.get('/one/two/three/four')
self.assertIsNotNone(metadata)
self.assertTrue(metadata is not None)
self.assertTrue(self.c.exists('/one'))
self.assertTrue(self.c.exists('/one/two'))
self.assertTrue(self.c.exists('/one/two/three'))
Expand Down Expand Up @@ -109,11 +109,11 @@ def test_get_children(self):
self.c.create('/one/two', 'twodata')
self.c.create('/one/three', 'threedata')
children = self.c.get_children('/one')
self.assertIn('/one/two', children)
self.assertIn('/one/three', children)
self.assertNotIn('/one', children)
self.assertNotIn('/outside', children)
self.assertNotIn('/outside/a', children)
self.assertTrue('/one/two' in children)
self.assertTrue('/one/three' in children)
self.assertTrue('/one' not in children)
self.assertTrue('/outside' not in children)
self.assertTrue('/outside/a' not in children)
self.assertEqual(len(children), 2)

def test_basic_set(self):
Expand All @@ -126,7 +126,7 @@ def test_basic_set(self):
self.c.set(path, 'updated')
data, metadata = self.c.get(path)
self.assertEqual(data, 'updated')
self.assertIsNotNone(metadata)
self.assertTrue(metadata is not None)

def test_set_version_mismatch(self):
"""
Expand Down

0 comments on commit 91642bb

Please sign in to comment.