summaryrefslogtreecommitdiff
path: root/test/test1.py
blob: 8e5cd1e7574b0250a0d7458b18099148d38eb6e6 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
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()