summaryrefslogtreecommitdiff
path: root/test/clitest.py
diff options
context:
space:
mode:
authorjvoisin2013-04-29 22:12:07 +0200
committerjvoisin2013-04-29 22:12:07 +0200
commit23f2db700575786bc111a28a963e2e240d90c534 (patch)
tree5ad79d492517db19477cf85d9b3170df1723bec5 /test/clitest.py
parent1e5ca09893284ae2f807ea4a00fbc79fba33e360 (diff)
Mat now correctly handle empty files
This is necessary beccause hachoir crashes on empty files...
Diffstat (limited to 'test/clitest.py')
-rw-r--r--test/clitest.py7
1 files changed, 7 insertions, 0 deletions
diff --git a/test/clitest.py b/test/clitest.py
index bc0a7fd..d877698 100644
--- a/test/clitest.py
+++ b/test/clitest.py
@@ -94,6 +94,13 @@ class TestFileAttributes(unittest.TestCase):
94 stdout, _ = proc.communicate() 94 stdout, _ = proc.communicate()
95 self.assertEqual(str(stdout).strip('\n'), 'Unable to process %s' % 'ilikecookies') 95 self.assertEqual(str(stdout).strip('\n'), 'Unable to process %s' % 'ilikecookies')
96 96
97 def test_empty(self):
98 ''' test MAT's behaviour on empty file'''
99 proc = subprocess.Popen(['../mat', 'empty_file'],
100 stdout=subprocess.PIPE)
101 stdout, _ = proc.communicate()
102 self.assertEqual(str(stdout).strip('\n'), 'Unable to process %s' % 'ilikecookies')
103
97 104
98def get_tests(): 105def get_tests():
99 ''' Return every clitests''' 106 ''' Return every clitests'''