def _make_login_view_response(self): """ Construct a response for a login view request """ header = ResponseHeader(http_codes["OK"]) page = pagetemplate.login_view_page() data = self._get_page_data(page) response = Response(header, data) return response
def test_login_view_page_returns_page(self): """ View login should return page """ page = pagetemplate.login_view_page() page_data = page.serialise() self.failUnlessOutputCheckerMatch( "Page {...}", page_data )
def test_login_view_page_returns_page(self): """ View login should return page """ page = pagetemplate.login_view_page() page_data = page.serialise() self.failUnlessOutputCheckerMatch("Page {...}", page_data)