def test_https_youtu_be_match(self):
     'Test if https://youtu.be matches'
     url = self.construct_url('https://youtu.be')
     r = youTubeMatcher.match(url)
     self.assertTrue(r)
 def test_www_match(self):
     'Test that "http://www.youtube.com/" is recognised'
     url = self.construct_url('http://www.youtube.com')
     r = youTubeMatcher.match(url)
     self.assertTrue(r)
 def test_https_www_sub(self):
     'Test that "https://www.youtube.com/" is embedded'
     url = self.construct_url('https://www.youtube.com')
     r = youTubeMatcher.match(url)
     self.assertTrue(r)
 def test_no_match(self):
     'Ensuring that something that is not a YouTube URL is skipped'
     r = youTubeMatcher.match("*this*")
     self.assertIs(None, r)