summaryrefslogtreecommitdiff
path: root/test/clitest.py
diff options
context:
space:
mode:
authorjvoisin2013-10-05 20:46:24 +0100
committerjvoisin2013-10-05 20:46:24 +0100
commitf97b4d88f0254588d11b8760fc6714828af0ef28 (patch)
tree3c53c65a86ed931041c18a9f54d0c15d56790d55 /test/clitest.py
parent0f2976458b4baeb418bf9242cbe7dfb96b071440 (diff)
mat is now able to check non-writables files
This is an implementaion of this suggestion: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=721572
Diffstat (limited to 'test/clitest.py')
-rw-r--r--test/clitest.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/test/clitest.py b/test/clitest.py
index 31e9015..1e552ba 100644
--- a/test/clitest.py
+++ b/test/clitest.py
@@ -86,7 +86,7 @@ class TestFileAttributes(unittest.TestCase):
86 proc = subprocess.Popen(['../mat', 'not_writtable'], 86 proc = subprocess.Popen(['../mat', 'not_writtable'],
87 stdout=subprocess.PIPE) 87 stdout=subprocess.PIPE)
88 stdout, _ = proc.communicate() 88 stdout, _ = proc.communicate()
89 self.assertEqual(str(stdout).strip('\n'), 'Unable to process %s' % 'not_writtable') 89 self.assertEqual(str(stdout).strip('\n'), '[-] %s is not writable' % 'not_writtable')
90 90
91 def test_not_exist(self): 91 def test_not_exist(self):
92 ''' test MAT's behaviour on non-existent file''' 92 ''' test MAT's behaviour on non-existent file'''