Exemplo n.º 1
0
 def test_fancy_name(self):
     file = self.makeFile(NEW_PACKAGE)
     info = parsePackageInfo(file)[0]
     self.assertEquals(info['name'], "name2")
     self.assertEquals(info['version'], "version2-arch2-release2_slack13.0")
     self.assertEquals(info['type'], ".txz")
Exemplo n.º 2
0
 def test_basic_name(self):
     file = self.makeFile(OLD_PACKAGE)
     info = parsePackageInfo(file)[0]
     self.assertEquals(info['name'], "name1")
     self.assertEquals(info['version'], "version1-arch1-release1")