Esempio n. 1
0
    def test_get_downloadurls(self):
        url = next(spac.get_urls('-S', ['gvim']))
        mirrors = spac.get_mirrors()

        urls = [x for x in spac.get_downloadurls(url, mirrors)]
        self.assertTrue(len(urls) >= 1)
Esempio n. 2
0
 def test_get_mirrors(self):
     mirrors = spac.get_mirrors()
     self.assertIsInstance(mirrors, types.GeneratorType)
     self.assertTrue(any(mirrors))