comparison tests/test_push_command.py @ 1044:d741f536f23a

tests: remove old test-loading infrastructure (for those in the know, this is known as a suitectomy)
author Dan Villiom Podlaski Christiansen <danchr@gmail.com>
date Wed, 07 Aug 2013 16:00:52 +0200
parents ada2400241c4
children 903c9c9dfe6a
comparison
equal deleted inserted replaced
1043:69a9fb45cad5 1044:d741f536f23a
677 self.assertNotEqual(tip.node(), old_tip) 677 self.assertNotEqual(tip.node(), old_tip)
678 self.assertEqual(p, os.getcwd()) 678 self.assertEqual(p, os.getcwd())
679 self.assertEqual(tip['adding_file'].data(), 'fooFirstFile') 679 self.assertEqual(tip['adding_file'].data(), 'fooFirstFile')
680 self.assertEqual(tip['newdir/new_file'].data(), 'fooNewFile') 680 self.assertEqual(tip['newdir/new_file'].data(), 'fooNewFile')
681 self.assertEqual(tip.branch(), 'default') 681 self.assertEqual(tip.branch(), 'default')
682
683
684 def suite():
685 test_classes = [PushTests, ]
686 all_tests = []
687 # This is the quickest hack I could come up with to load all the tests from
688 # both classes. Would love a patch that simplifies this without adding
689 # dependencies.
690 for tc in test_classes:
691 for attr in dir(tc):
692 if attr.startswith('test_'):
693 all_tests.append(tc(attr))
694 return unittest.TestSuite(all_tests)