示例#1
0
 def test_url_matches(self):
     url = 'http://wallbase.cc/wallpaper/1356861'
     self.assertTrue(Wallbase.url_matches(url))
     self.assertFalse(Wallbase.is_coll(url))
     self.assertTrue(Wallbase.is_wall(url))
示例#2
0
 def test_url_not_matches(self):
     url = 'http://wallpapers.wallbase.cc/rozne/wallpaper-1356861.jpg'
     self.assertFalse(Wallbase.url_matches(url))