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

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