示例#1
0
 def test_googleplus(self):
     self.assertEqual(LinkIcon.icon("https://plus.google.com/102414295336553974068/posts"), "googleplus")
示例#2
0
 def test_facebook(self):
     self.assertEqual(LinkIcon.icon("https://www.facebook.com/mm.bivol"), "facebook")
示例#3
0
 def test_none(self):
     self.assertEqual(LinkIcon.icon("loremipsum"), "not_supported")
示例#4
0
 def test_googleplus(self):
     self.assertEqual(
         LinkIcon.icon(
             "https://plus.google.com/102414295336553974068/posts"),
         "googleplus")
示例#5
0
 def test_facebook(self):
     self.assertEqual(LinkIcon.icon("https://www.facebook.com/mm.bivol"),
                      "facebook")
示例#6
0
 def test_none(self):
     self.assertEqual(LinkIcon.icon("loremipsum"), "not_supported")