diff options
author | Joshua Ismael Haase Hernández <hahj87@gmail.com> | 2011-02-08 00:42:33 -0600 |
---|---|---|
committer | Joshua Ismael Haase Hernández <hahj87@gmail.com> | 2011-02-08 00:43:18 -0600 |
commit | 80402467cf38f32373ac14d992d2daee4736ad82 (patch) | |
tree | e4700f313ba096b9b3be1d7c57dbc14f11a0028b /test/test1.py | |
parent | 039c18a9ab6259a13285a22d84390bba2c35642e (diff) |
Added primitive testcase
Diffstat (limited to 'test/test1.py')
-rw-r--r-- | test/test1.py | 22 |
1 files changed, 22 insertions, 0 deletions
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() |