X-Git-Url: http://gitweb.fperrin.net/?p=djsite.git;a=blobdiff_plain;f=quotes%2Ftest_massimport.py;fp=quotes%2Ftest_massimport.py;h=fb5ea368aca5f93de9d033cbd5e7a87d4995ac57;hp=0a9fb4f70fafe6ea0ceb622b59f4904ae4dcfb81;hb=ac8dcbf73da18db58cedc61cb79882b8bf3e74b1;hpb=5a0c0284b85a13255f86513565d145ebecfa9637
diff --git a/quotes/test_massimport.py b/quotes/test_massimport.py
index 0a9fb4f..fb5ea36 100644
--- a/quotes/test_massimport.py
+++ b/quotes/test_massimport.py
@@ -11,7 +11,7 @@ class Test_MassImport():
return q1
@pytest.mark.django_db
- def test_massimport_1(self, q1, c):
+ def test_massimport_1(self, q1, c_adm):
allquotes = """\
Ich bin ein Berliner
---
@@ -42,7 +42,7 @@ Romeo and Juliet
tag1, tag555
==="""
- results = c.postPage('massimport/', {'quotes': allquotes})
+ results = c_adm.postPage('massimport/', {'quotes': allquotes})
assert "rejected" not in results
@@ -58,10 +58,10 @@ tag1, tag555
assert hamlet.author == Author.objects.get(name="William Shakespeare")
for quote in Quote.objects.all():
- assert c.getPage(quote.get_absolute_url())
+ assert c_adm.getPage(quote.get_absolute_url())
@pytest.mark.django_db
- def test_massimport_2(self, q1, c):
+ def test_massimport_2(self, q1, c_adm):
allquotes = """\
A rose by any other name...
@@ -73,13 +73,13 @@ Romeo and Juliet
tag1, tag555
==="""
- results = c.postPage('massimport/', {'quotes': allquotes})
+ results = c_adm.postPage('massimport/', {'quotes': allquotes})
assert "