Exemplo n.º 1
0
    def test_change_url(self):
        webclient = MockWebClient(HTMLFactory.navigation_url())
        self.factory = AsuntoFactory(webclient)
        url = "xxxx"
        self.factory.changeUrl(url)

        self.assertEqual(url, webclient.url)
Exemplo n.º 2
0
 def test_next_url(self):
     mockweb = MockWebClient(HTMLFactory.navigation_url())
     self.factory =  AsuntoFactory(mockweb)
     self.assertEqual(self.factory.nextUrl(), u'http://labsk.net/index.php?board=18.20')