Exemplo n.º 1
0
 def assertLivePage(self, page):
     """
     Fail if the given object is not a L{MantissaLivePage}, or if the
     username is wrong.
     """
     WebViewerTestMixin.assertLivePage(self, page)
     self.assertEqual(page.username, u'admin@localhost')
Exemplo n.º 2
0
 def assertPage(self, page):
     """
     Fail if the given object is not a nevow L{rend.Page} (or if it is an
     L{LivePage}). Also fail if the username is wrong.
     """
     WebViewerTestMixin.assertPage(self, page)
     self.assertEqual(page.username, u'admin@localhost')