def test_alt(self): self.assertEqual( maintainer_to_links('*****@*****.**'), ['http://sisyphus.ru/en/packager/foo/', 'mailto:[email protected]']) self.assertEqual( maintainer_to_links('*****@*****.**'), ['http://sisyphus.ru/en/packager/foo/', 'mailto:[email protected]'])
def test_aur(self): self.assertEqual(maintainer_to_links('foo@aur'), ['https://aur.archlinux.org/account/foo'])
def test_cpan(self): self.assertEqual(maintainer_to_links('foo@cpan'), ['http://search.cpan.org/~foo'])
def test_garbage(self): self.assertEqual(maintainer_to_links('foo'), [])
def test_email(self): self.assertEqual(maintainer_to_links('*****@*****.**'), ['mailto:[email protected]'])