Esempio n. 1
0
 def test_main_is_capture_fragment_identifier_true(self):
     url_test = 'http://localhost:8178/api-docs'
     href = '#abrir'
     result = 'http://localhost:8178/api-docs/#abrir'
     w = Wrecon()
     parser = w.capture(url_test, href)
     self.assertEqual(parser, result)
Esempio n. 2
0
 def test_main_is_capture_None_true(self):
     url_test = 'http://localhost:8178/api-docs/'
     href = None
     result = None
     w = Wrecon()
     parser = w.capture(url_test, href)
     self.assertEqual(parser, result)
Esempio n. 3
0
 def test_main_is_capture_double(self):
     url_test = 'http://localhost:8178/api-docs/#/'
     href = '//testasdasdhaujs.com'
     result = 'https://testasdasdhaujs.com'
     w = Wrecon()
     parser = w.capture(url_test, href)
     self.assertEqual(parser, result)