Fix 'duplicated deps' test case for python 2.6

This commit is contained in:
Dmitry Pribysh 2016-02-10 20:59:24 +03:00
parent c3761598ce
commit def91ce48a

View File

@ -48,7 +48,7 @@ class TestPipreqs(unittest.TestCase):
imports = pipreqs.get_all_imports(self.project_with_duplicated_deps)
pkgs = pipreqs.get_pkg_names(imports)
self.assertEqual(len(pkgs), 1)
self.assertIn("pymongo", pkgs)
self.assertTrue("pymongo" in pkgs)
def test_invalid_python(self):
"""