def test_wheel_scraper_prefer_source(self): """ Wheel scraper can be marked to prefer source dists """ locator = util.BetterScrapingLocator('localhost') locator.prefer_wheel = False self.assertTrue( locator.score_url('http://localhost/mypkg-1.1.whl') < locator.score_url('http://localhost/mypkg-1.1.tar.gz'))
def test_wheel_scraper(self): """ Wheel scraper prefers wheel dists """ locator = util.BetterScrapingLocator("localhost") self.assertTrue( locator.score_url("http://localhost/mypkg-1.1.whl") > locator.score_url("http://localhost/mypkg-1.1.tar.gz") )