summaryrefslogtreecommitdiff
path: root/tests/multiple_database
diff options
context:
space:
mode:
authorTim Graham <timograham@gmail.com>2016-09-07 09:48:31 -0400
committerTim Graham <timograham@gmail.com>2016-09-07 09:48:31 -0400
commit8cae9bb77299794187b60f0489ac27dd403cf646 (patch)
tree382f0cddca7a4838732d4d29d7d635ca3095a9f3 /tests/multiple_database
parentccf7adb064a70eb1b1ec5857f1dd54988f5c983c (diff)
downloaddjango-8cae9bb77299794187b60f0489ac27dd403cf646.tar.gz
Removed unused lines in multiple_database test.
Diffstat (limited to 'tests/multiple_database')
-rw-r--r--tests/multiple_database/tests.py8
1 files changed, 1 insertions, 7 deletions
diff --git a/tests/multiple_database/tests.py b/tests/multiple_database/tests.py
index dc714b7119..5a7b69483f 100644
--- a/tests/multiple_database/tests.py
+++ b/tests/multiple_database/tests.py
@@ -94,13 +94,7 @@ class QueryTestCase(TestCase):
Book.objects.using('default').get(title="Dive into Python")
def test_refresh(self):
- dive = Book()
- dive.title = "Dive into Python"
- dive = Book()
- dive.title = "Dive into Python"
- dive.published = datetime.date(2009, 5, 4)
- dive.save(using='other')
- dive.published = datetime.date(2009, 5, 4)
+ dive = Book(title="Dive into Python", published=datetime.date(2009, 5, 4))
dive.save(using='other')
dive2 = Book.objects.using('other').get()
dive2.title = "Dive into Python (on default)"