24
24
class LogTest(unittest.TestCase):
25
25
"""Test machine-readable functions/classes in log.py"""
27
27
duplicity_bin = "../duplicity-bin"
29
35
def test_command_line_error(self):
30
36
"""Check notification of a simple error code"""
32
38
# Run actual duplicity command (will fail, because no arguments passed)
33
39
os.system("%s --log-file=/tmp/duplicity.log >/dev/null 2>&1" % self.duplicity_bin)
35
41
# The format of the file should be:
41
47
f = open('/tmp/duplicity.log', 'r')