Exemplo n.º 1
0
 def test_URL_Check_notXML(
         self):
     """
     Asserts that a string url not ending in 'xml' will return a boolean
     false
     """
     self.assertFalse(parser.check_url('randomWords'))
Exemplo n.º 2
0
 def test_URL_Check_Safe_FeedBurner(
         self):
     """
     Asserts that a string url starting with 'https' and containing the word
      'feeds' will return boolean true
     """
     self.assertTrue(parser.check_url(
         "https://feeds.feedburner.com/ign/all"))
Exemplo n.º 3
0
 def test_URL_Check_html(
         self):
     """
     Asserts that a string url ending in html will return boolean True
     """
     self.assertTrue(parser.check_url('urlishtml'))
Exemplo n.º 4
0
 def test_URL_Check_incompatible(
         self):
     """
     Asserts that an improperly formatted url will return a Boolean false
     """
     self.assertFalse(parser.check_url('nevergonnagiveyouup'))
Exemplo n.º 5
0
 def test_URL_Check_rss(
         self):
     """
     Asserts that a string url ending in rss will return Boolean true
     """
     self.assertTrue(parser.check_url('testingrss'))
Exemplo n.º 6
0
 def test_URL_Check_endsinXML(
         self):
     """
     Asserts that a string url ending in 'xml' will return Boolean true
     """
     self.assertTrue(parser.check_url('urlisxml'))
Exemplo n.º 7
0
 def test_URL_Check_empty(
         self):
     """
     Asserts that an empty url will return a Boolean false
     """
     self.assertFalse(parser.check_url(''))