def test_loginpage_return_title_html(self): request = HttpResponse() response = login(request) self.assertIn(b"<title>AutotestPlat</title>", response.content)
def test_content_url_resolves_to_view(self): request = HttpRequest() response = login(request) self.assertIn(b'test1234567', response.content)
from apitest.views import login r = login('') print(type(r)) print(r)