summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorJoshua Ismael Haase Hernández <hahj87@gmail.com>2011-02-14 02:28:01 -0600
committerJoshua Ismael Haase Hernández <hahj87@gmail.com>2011-02-14 02:28:01 -0600
commitcbe877f2ba25b398ad32b92d22dc6f5a108ef59f (patch)
tree83a79f020cc5439f96a6677b5e882ca950e5ba1d /test
parent7f40b89e8cd0e9b2cfd92a8b74c4063d8b9aa3e3 (diff)
* Changed get_file_list_ for pkginfo in function names
* Added pkginfo_from_... funcions
Diffstat (limited to 'test')
-rw-r--r--test/test1.py8
1 files changed, 4 insertions, 4 deletions
diff --git a/test/test1.py b/test/test1.py
index 13b5660..9e94352 100644
--- a/test/test1.py
+++ b/test/test1.py
@@ -29,12 +29,12 @@ class KnownValues(unittest.TestCase):
def generate_results(self, example_tuple, attr):
rsync_out, name, version, arch, release, location = example_tuple
- return get_file_list_from_rsync_output(rsync_out)[0][attr], locals()[attr]
+ return pkginfo_from_rsync_output(rsync_out)[0][attr], locals()[attr]
def testDirectoryOutput(self):
- """get_file_list_from_rsync_output should ignore directories"""
+ """pkginfo_from_rsync_output should ignore directories"""
rsync_out="\n".join(self.directory_list)
- result=get_file_list_from_rsync_output(rsync_out)
+ result=pkginfo_from_rsync_output(rsync_out)
self.assertEqual(tuple(), result)
def testNames(self):
@@ -62,5 +62,5 @@ class KnownValues(unittest.TestCase):
k,v = self.generate_results(example_tuple=i,attr="location")
self.assertEqual(k, v)
-if __name__ == "__main__":
+if __name__ == "__mpain__":
unittest.main()