summaryrefslogtreecommitdiff
path: root/tests/delete_regress
diff options
context:
space:
mode:
authorMariusz Felisiak <felisiak.mariusz@gmail.com>2018-03-16 10:54:34 +0100
committerGitHub <noreply@github.com>2018-03-16 10:54:34 +0100
commit362813d6287925b8f63f0b107c55a74d95f5825e (patch)
treeefd69a3deb9e837624279e5abfdd8d55d57dcd7c /tests/delete_regress
parentaeb8c381789ad93866223f8bd07d09ae5e2edd9e (diff)
downloaddjango-362813d6287925b8f63f0b107c55a74d95f5825e.tar.gz
Fixed hanging indentation in various code.
Diffstat (limited to 'tests/delete_regress')
-rw-r--r--tests/delete_regress/tests.py9
1 files changed, 3 insertions, 6 deletions
diff --git a/tests/delete_regress/tests.py b/tests/delete_regress/tests.py
index a8b1cb0386..d4d39843e3 100644
--- a/tests/delete_regress/tests.py
+++ b/tests/delete_regress/tests.py
@@ -61,8 +61,7 @@ class DeleteCascadeTests(TestCase):
"""
person = Person.objects.create(name='Nelson Mandela')
award = Award.objects.create(name='Nobel', content_object=person)
- AwardNote.objects.create(note='a peace prize',
- award=award)
+ AwardNote.objects.create(note='a peace prize', award=award)
self.assertEqual(AwardNote.objects.count(), 1)
person.delete()
self.assertEqual(Award.objects.count(), 0)
@@ -78,10 +77,8 @@ class DeleteCascadeTests(TestCase):
"""
juan = Child.objects.create(name='Juan')
paints = Toy.objects.create(name='Paints')
- played = PlayedWith.objects.create(child=juan, toy=paints,
- date=datetime.date.today())
- PlayedWithNote.objects.create(played=played,
- note='the next Jackson Pollock')
+ played = PlayedWith.objects.create(child=juan, toy=paints, date=datetime.date.today())
+ PlayedWithNote.objects.create(played=played, note='the next Jackson Pollock')
self.assertEqual(PlayedWithNote.objects.count(), 1)
paints.delete()
self.assertEqual(PlayedWith.objects.count(), 0)