def test_loginpage_return_title_html(self):
     request = HttpResponse()
     response = login(request)
     self.assertIn(b"<title>AutotestPlat</title>", response.content)
示例#2
0
 def test_content_url_resolves_to_view(self):
     request = HttpRequest()
     response = login(request)
     self.assertIn(b'test1234567', response.content)
示例#3
0
from apitest.views import login

r = login('')
print(type(r))
print(r)