def test_bts649649(self): # checking for non-existing package should not generate a traceback vers = checkversions.get_versions_available('blablabla', 60) self.assertEqual(vers, {})
def test_673204(self): vers = checkversions.get_versions_available('texlive-xetex', 60) # squeeze (stable at this time) is the first suite where texlive-xetex # is arch:all self.assertIn('stable', vers)
def test_bts642032(self): vers = checkversions.get_versions_available('reportbug', 60) # check stable version is lower than unstable chk = checkversions.compare_versions(vers['stable'], vers['unstable']) self.assertEqual(chk, 1)
def test_codenames(self): vers = checkversions.get_versions_available('reportbug', 60, ['sid']) self.assertEqual(1, len(vers)) self.assertEqual(list(vers.keys())[0], 'unstable')
def test_bts673204(self): vers = checkversions.get_versions_available('texlive-xetex', 60) # squeeze (stable at this time) is the first suite where texlive-xetex # is arch:all self.assertIn('stable', vers)
def test_bts642032(self): vers = checkversions.get_versions_available('reportbug', 60) # check stable version is lower than unstable chk = checkversions.compare_versions(vers['stable'], vers['unstable']) self.assertGreaterEqual(chk, 0)