예제 #1
0
 def test_02_nature_supports_fail(self):
     test_urls = ["http://www.plosone.org/", "askjdfsakjdhfsa"]
     npg = NaturePlugin()
     for url in test_urls:
         assert not npg.supports({"url" : [url]})
예제 #2
0
 def test_01_nature_supports_success(self):
     test_urls = ["http://www.nature.com/ncomms/journal/v1/n1/full/ncomms1007.html"]
     npg = NaturePlugin()
     for url in test_urls:
         assert npg.supports({"url" : [url]})