summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--test/directory_list2
-rw-r--r--test/link_list2
-rw-r--r--test/package_list3
-rw-r--r--test/test1.py22
4 files changed, 29 insertions, 0 deletions
diff --git a/test/directory_list b/test/directory_list
new file mode 100644
index 0000000..c0f7f47
--- /dev/null
+++ b/test/directory_list
@@ -0,0 +1,2 @@
+drwxrwxr-x 15 2010/09/11 11:28:50 community-staging
+drwxrwxr-x 30 2010/09/11 11:28:50 community-staging/os \ No newline at end of file
diff --git a/test/link_list b/test/link_list
new file mode 100644
index 0000000..d015364
--- /dev/null
+++ b/test/link_list
@@ -0,0 +1,2 @@
+lrwxrwxrwx 53 2011/01/31 01:52:06 community-testing/os/i686/apvlv-0.1.0-2-i686.pkg.tar.xz -> ../../../pool/community/apvlv-0.1.0-2-i686.pkg.tar.xz
+lrwxrwxrwx 56 2011/02/04 14:34:08 community-testing/os/i686/calibre-0.7.44-2-i686.pkg.tar.xz -> ../../../pool/community/calibre-0.7.44-2-i686.pkg.tar.xz \ No newline at end of file
diff --git a/test/package_list b/test/package_list
new file mode 100644
index 0000000..6ffa1de
--- /dev/null
+++ b/test/package_list
@@ -0,0 +1,3 @@
+-rw-rw-r-- 5846249 2010/11/13 10:54:25 pool/community/abuse-0.7.1-1-x86_64.pkg.tar.gz
+-rw-rw-r-- 982768 2011/02/05 14:38:17 pool/community/acetoneiso2-2.3-2-i686.pkg.tar.xz
+-rw-rw-r-- 982764 2011/02/05 14:38:40 pool/community/acetoneiso2-2.3-2-x86_64.pkg.tar.xz \ No newline at end of file
diff --git a/test/test1.py b/test/test1.py
new file mode 100644
index 0000000..8e5cd1e
--- /dev/null
+++ b/test/test1.py
@@ -0,0 +1,22 @@
+""" """
+
+__author__ = "Joshua Ismael Haase Hernández <hahj87@gmail.com>"
+__version__ = "$Revision: 1.1 $"
+__date__ = "$Date: 2011/02/08 $"
+__copyright__ = "Copyright (c) 2011 Joshua Ismael Haase Hernández"
+__license__ = "GPL3+"
+
+import repm.filter
+import unittest
+import commands
+
+class KnownValues(unittest.TestCase):
+
+ def testDirectoryOutput(self):
+ """get_file_list_from_rsync_output should ignore directories"""
+ output=commands.getoutput("cat ./directory_list")
+ result=get_file_list_from_rsync_output(output)
+ self.assertEqual(tuple(), result)
+
+if __name__ == "__main__":
+ unittest.main()