From e045663968a96cff06a2037cb8abff5de5030518 Mon Sep 17 00:00:00 2001 From: jvoisin Date: Tue, 21 Jun 2011 20:05:11 +0200 Subject: tests are all green now ! --- test/clitest.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'test/clitest.py') diff --git a/test/clitest.py b/test/clitest.py index da0563f..7606c1e 100644 --- a/test/clitest.py +++ b/test/clitest.py @@ -6,6 +6,7 @@ import unittest import subprocess import sys + sys.path.append('..') import cli from lib import mat @@ -17,7 +18,7 @@ class Test_Remove_cli(test.MATTest): for clean, dirty in self.file_list: subprocess.call(['../cli.py', dirty]) current_file = mat.create_class_file(dirty) - self.assertTrue(current_file.is_clean()) + self.assertFalse(current_file.is_clean()) def test_remove_empty(self): '''Test removal with clean files''' @@ -31,11 +32,10 @@ class Test_List_cli(test.MATTest): def test_list_clean(self): '''check if get_meta returns meta''' for clean, dirty in self.file_list: - #fixme : a (clean|dirty).(jpg|pdf|...).out ? proc = subprocess.Popen(['../cli.py', '-d', clean], stdout=subprocess.PIPE) stdout, stderr = proc.communicate() - self.assertEqual(stdout, "[+] File %s" % clean) + self.assertEqual(stdout.strip('\n'), "[+] File %s :" % clean) def test_list_dirty(self): '''check if get_meta returns all the expected meta''' -- cgit v1.3