Whitespace
This commit is contained in:
parent
0f9e4ef352
commit
5c45eee817
@ -654,8 +654,7 @@ class InstanceTest(unittest.TestCase):
|
|||||||
|
|
||||||
Foo.drop_collection()
|
Foo.drop_collection()
|
||||||
|
|
||||||
a = Foo(name='hello')
|
a = Foo(name='hello').save()
|
||||||
a.save()
|
|
||||||
|
|
||||||
a.bar = a
|
a.bar = a
|
||||||
with open(TEST_IMAGE_PATH, 'rb') as test_image:
|
with open(TEST_IMAGE_PATH, 'rb') as test_image:
|
||||||
@ -665,7 +664,7 @@ class InstanceTest(unittest.TestCase):
|
|||||||
# Confirm can save and it resets the changed fields without hitting
|
# Confirm can save and it resets the changed fields without hitting
|
||||||
# max recursion error
|
# max recursion error
|
||||||
b = Foo.objects.with_id(a.id)
|
b = Foo.objects.with_id(a.id)
|
||||||
b.name='world'
|
b.name = 'world'
|
||||||
b.save()
|
b.save()
|
||||||
|
|
||||||
self.assertEqual(b.picture, b.bar.picture, b.bar.bar.picture)
|
self.assertEqual(b.picture, b.bar.picture, b.bar.bar.picture)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user