def test_get_extension(self):
     """
     Tests whether given a url if the video will return a youtube source or extension
     """
     expectedyoutube = 'video/youtube'
     expectednotyoutube = 'video/mp4'
     result1 = get_extension(self.sample_sourceurl)
     result2 = get_extension(self.sample_youtubeurl)
     self.assertEqual(expectedyoutube, result2)
     self.assertEqual(expectednotyoutube, result1)
 def test_get_extension(self):
     """
     Tests whether given a url if the video will return a youtube source or extension
     """
     expectedyoutube = 'video/youtube'
     expectednotyoutube = 'video/mp4'
     result1 = get_extension(self.sample_sourceurl)
     result2 = get_extension(self.sample_youtubeurl)
     assert expectedyoutube == result2
     assert expectednotyoutube == result1
 def _get_extension(self, src_url):
     ''' get the extension of a given url '''
     return get_extension(src_url)
 def _get_extension(self, src_url):
     ''' get the extension of a given url '''
     return get_extension(src_url)
 def _get_extension(self, src_url):
     """ get the extension of a given url """
     return get_extension(src_url)