Example #1
0
 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
Example #2
0
 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
         )
Example #3
0
 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)