Replace assertIn with an assertTrue; apparently missing in Python 2.6

This commit is contained in:
Paul Uithol 2013-07-25 15:34:58 +02:00
parent e27439be6a
commit d143e50238

View File

@ -696,7 +696,7 @@ class DeltaTest(unittest.TestCase):
updates, removals = organization._delta() updates, removals = organization._delta()
self.assertEqual({}, removals) self.assertEqual({}, removals)
self.assertIn('employees.0', updates) self.assertTrue('employees.0' in updates)
organization.save() organization.save()
@ -708,7 +708,7 @@ class DeltaTest(unittest.TestCase):
updates, removals = organization._delta() updates, removals = organization._delta()
self.assertEqual({}, removals) self.assertEqual({}, removals)
self.assertIn('employees.0', updates) self.assertTrue('employees.0' in updates)
organization.save() organization.save()