Commits

Pierre-Yves David committed cdb85a8

fix indent in test

Comments (0)

Files changed (1)

distutils2/_backport/tests/test_pkgutil.py

 
         # Now, test if the egg-info distributions are found correctly as well
         fake_dists += [('bacon', '0.1'), ('cheese', '2.0.2'),
-            ('coconuts-aster', '10.3'),
-            ('banana', '0.4'), ('strawberry', '0.6'),
-            ('truffles', '5.0'), ('nut', 'funkyversion')]
+                       ('coconuts-aster', '10.3'),
+                       ('banana', '0.4'), ('strawberry', '0.6'),
+                       ('truffles', '5.0'), ('nut', 'funkyversion')]
         found_dists = []
 
         dists = [dist for dist in get_distributions(use_egg_info=True)]
 
         l = [dist.name for dist in provides_distribution('truffles', \
                                                          '!=1.1,<=2.0',
-                                                         use_egg_info=True)]
+                                                          use_egg_info=True)]
         checkLists(l, ['choxie', 'bacon', 'cheese'])
 
         l = [dist.name for dist in provides_distribution('truffles', '>1.0')]
         checkLists = lambda x, y: self.assertListEqual(sorted(x), sorted(y))
 
         eggs = [('bacon', '0.1'), ('banana', '0.4'), ('strawberry', '0.6'),
-            ('truffles', '5.0'), ('cheese', '2.0.2'),
-            ('coconuts-aster', '10.3'), ('nut', 'funkyversion')]
+                ('truffles', '5.0'), ('cheese', '2.0.2'),
+                ('coconuts-aster', '10.3'), ('nut', 'funkyversion')]
         dists = [('choxie', '2.0.0.9'), ('grammar', '1.0a4'),
-            ('towel-stuff', '0.1'), ('babar', '0.1')]
+                 ('towel-stuff', '0.1'), ('babar', '0.1')]
 
         checkLists([], _yield_distributions(False, False))
 
         found = [(dist.name, dist.metadata['Version'])
-            for dist in _yield_distributions(False, True)
-            if dist.path.startswith(self.fake_dists_path)]
+                for dist in _yield_distributions(False, True)
+                if dist.path.startswith(self.fake_dists_path)]
         checkLists(eggs, found)
 
         found = [(dist.name, dist.metadata['Version'])
-            for dist in _yield_distributions(True, False)
-            if dist.path.startswith(self.fake_dists_path)]
+                for dist in _yield_distributions(True, False)
+                if dist.path.startswith(self.fake_dists_path)]
         checkLists(dists, found)
 
         found = [(dist.name, dist.metadata['Version'])
-            for dist in _yield_distributions(True, True)
-            if dist.path.startswith(self.fake_dists_path)]
+                for dist in _yield_distributions(True, True)
+                if dist.path.startswith(self.fake_dists_path)]
         checkLists(dists + eggs, found)
 
 
-
-
 def test_suite():
     suite = unittest.TestSuite()
     load = unittest.defaultTestLoader.loadTestsFromTestCase