예제 #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'))
예제 #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"))
예제 #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'))
예제 #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'))
예제 #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'))
예제 #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'))
예제 #7
0
 def test_URL_Check_empty(
         self):
     """
     Asserts that an empty url will return a Boolean false
     """
     self.assertFalse(parser.check_url(''))