diff options
| author | jvoisin | 2013-04-29 22:14:15 +0200 |
|---|---|---|
| committer | jvoisin | 2013-04-29 22:14:15 +0200 |
| commit | 7aec92f8dadb319aafe6c961b18085af71cd20fa (patch) | |
| tree | 0a810cd755751c444e02216c28aa1255a011f71c /test/libtest.py | |
| parent | e4194794275b00fbf4710f99e14baa51f2ffe118 (diff) | |
| parent | 23f2db700575786bc111a28a963e2e240d90c534 (diff) | |
Merge branch 'master' into glade
Diffstat (limited to 'test/libtest.py')
| -rw-r--r-- | test/libtest.py | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/test/libtest.py b/test/libtest.py index 7b31e3e..ffec63a 100644 --- a/test/libtest.py +++ b/test/libtest.py | |||
| @@ -72,11 +72,16 @@ class TestFileAttributes(unittest.TestCase): | |||
| 72 | test various stuffs about files (readable, writable, exist, ...) | 72 | test various stuffs about files (readable, writable, exist, ...) |
| 73 | ''' | 73 | ''' |
| 74 | def test_not_writtable(self): | 74 | def test_not_writtable(self): |
| 75 | ''' test MAT's behaviour on non-writable file''' | ||
| 75 | self.assertFalse(mat.create_class_file('not_writtable', False, add2archive=True, low_pdf_quality=True)) | 76 | self.assertFalse(mat.create_class_file('not_writtable', False, add2archive=True, low_pdf_quality=True)) |
| 76 | 77 | ||
| 77 | def test_not_exist(self): | 78 | def test_not_exist(self): |
| 79 | ''' test MAT's behaviour on non-existent file''' | ||
| 78 | self.assertFalse(mat.create_class_file('ilikecookies', False, add2archive=True, low_pdf_quality=True)) | 80 | self.assertFalse(mat.create_class_file('ilikecookies', False, add2archive=True, low_pdf_quality=True)) |
| 79 | 81 | ||
| 82 | def test_empty(self): | ||
| 83 | ''' test MAT's behaviour on empty file''' | ||
| 84 | self.assertFalse(mat.create_class_file('empty_file', False, add2archive=True, low_pdf_quality=True)) | ||
| 80 | 85 | ||
| 81 | def get_tests(): | 86 | def get_tests(): |
| 82 | ''' Return every libtests''' | 87 | ''' Return every libtests''' |
