示例#1
0
 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]'])
示例#2
0
 def test_aur(self):
     self.assertEqual(maintainer_to_links('foo@aur'), ['https://aur.archlinux.org/account/foo'])
示例#3
0
 def test_cpan(self):
     self.assertEqual(maintainer_to_links('foo@cpan'), ['http://search.cpan.org/~foo'])
示例#4
0
 def test_garbage(self):
     self.assertEqual(maintainer_to_links('foo'), [])
示例#5
0
 def test_email(self):
     self.assertEqual(maintainer_to_links('*****@*****.**'), ['mailto:[email protected]'])