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)
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')