Replace assertIn
with an assertTrue
; apparently missing in Python 2.6
This commit is contained in:
@@ -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()
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user