summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJoshua Ismael Haase Hernández <hahj87@gmail.com>2011-02-08 03:43:07 -0600
committerJoshua Ismael Haase Hernández <hahj87@gmail.com>2011-02-08 03:43:07 -0600
commit748ef10d89e5898c1ebffb08165f18cd3829119e (patch)
treea24367e3a287e5b60087e33c05ca03c8f7efaee5
parent8fcf2f7f622de21b580ee808de53cffcc9200639 (diff)
Fixed stupid error.
-rw-r--r--test/test1.py8
1 files changed, 4 insertions, 4 deletions
diff --git a/test/test1.py b/test/test1.py
index 4ec72d3..ea488e9 100644
--- a/test/test1.py
+++ b/test/test1.py
@@ -46,25 +46,25 @@ class KnownValues(unittest.TestCase):
results=self.generate_results(self.examples)
var = [version for rsync_out, name, version, arch, release, location in self.examples]
for i in range(len(results)):
- self.assertEqual(results[i]["name"], var[i])
+ self.assertEqual(results[i]["version"], var[i])
def testArchs(self):
results=self.generate_results(self.examples)
var = [arch for rsync_out, name, version, arch, release, location in self.examples]
for i in range(len(results)):
- self.assertEqual(results[i]["name"], var[i])
+ self.assertEqual(results[i]["arch"], var[i])
def testReleases(self):
results=self.generate_results(self.examples)
var = [release for rsync_out, name, version, arch, release, location in self.examples]
for i in range(len(results)):
- self.assertEqual(results[i]["name"], var[i])
+ self.assertEqual(results[i]["release"], var[i])
def testLocations(self):
results=self.generate_results(self.examples)
var = [location for rsync_out, name, version, arch, release, location in self.examples]
for i in range(len(results)):
- self.assertEqual(results[i]["name"], var[i])
+ self.assertEqual(results[i]["location"], var[i])
if __name__ == "__main__":
unittest.main()