assertIn not supported in py26

This commit is contained in:
shin- 2013-11-08 20:43:09 +01:00
parent 1d1395464c
commit 2e66ca8a6c
1 changed files with 2 additions and 2 deletions

View File

@ -525,9 +525,9 @@ class DockerClientTest(unittest.TestCase):
folder = tempfile.mkdtemp()
cfg = docker.auth.load_config(folder)
self.assertTrue(cfg is not None)
self.assertIn('Configs', cfg)
self.assertTrue('Configs' in cfg)
self.assertEquals(cfg['Configs'], {})
self.assertIn('rootPath', cfg)
self.assertTrue('rootPath' in cfg)
self.assertEquals(cfg['rootPath'], folder)
def test_load_config(self):