def test_detection_of_non_ka_urls(self): self.assertFalse(util.is_khanacademy_url("http://evil.com")) self.assertFalse(util.is_khanacademy_url("https://khanacademy.phising.com"))
def is_ka_url(url): return util.is_khanacademy_url(url)