def test_alt(self) -> None: 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_cpan(self) -> None: self.assertEqual(maintainer_to_links('foo@cpan'), ['http://search.cpan.org/~foo'])
def test_aur(self) -> None: self.assertEqual(maintainer_to_links('foo@aur'), ['https://aur.archlinux.org/account/foo'])
def test_email(self) -> None: self.assertEqual(maintainer_to_links('*****@*****.**'), ['mailto:[email protected]'])
def test_garbage(self) -> None: self.assertEqual(maintainer_to_links('foo'), [])
def test_alt(): assert maintainer_to_links('*****@*****.**') == ['http://sisyphus.ru/en/packager/foo/', 'mailto:[email protected]'] assert maintainer_to_links('*****@*****.**') == ['http://sisyphus.ru/en/packager/foo/', 'mailto:[email protected]']
def test_aur(): assert maintainer_to_links('foo@aur') == ['https://aur.archlinux.org/account/foo']
def test_cpan(): assert maintainer_to_links('foo@cpan') == ['http://search.cpan.org/~foo']
def test_garbage(): assert maintainer_to_links('foo') == []
def test_email(): assert maintainer_to_links('*****@*****.**') == ['mailto:[email protected]']