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'))
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"))
def test_URL_Check_html( self): """ Asserts that a string url ending in html will return boolean True """ self.assertTrue(parser.check_url('urlishtml'))
def test_URL_Check_incompatible( self): """ Asserts that an improperly formatted url will return a Boolean false """ self.assertFalse(parser.check_url('nevergonnagiveyouup'))
def test_URL_Check_rss( self): """ Asserts that a string url ending in rss will return Boolean true """ self.assertTrue(parser.check_url('testingrss'))
def test_URL_Check_endsinXML( self): """ Asserts that a string url ending in 'xml' will return Boolean true """ self.assertTrue(parser.check_url('urlisxml'))
def test_URL_Check_empty( self): """ Asserts that an empty url will return a Boolean false """ self.assertFalse(parser.check_url(''))