예제 #1
0
 def test_04_npg_supports_url_fail(self):
     npg = NaturePlugin()
     test_urls = ["http://www.biomedcentral.com/983242", "askjdfsakjdhfsa"]
     for url in test_urls:
         assert not npg.supports_base_url(url)
예제 #2
0
 def test_03_npg_supports_url_success(self):
     test_urls = ["http://www.nature.com/srep/2013/130415/srep01657/full/srep01657.html"]
     npg = NaturePlugin()
     for url in test_urls:
         assert npg.supports_base_url(url)