From 7f308642294d9b68cda8eba9c2ffb5f14f3843ff Mon Sep 17 00:00:00 2001 From: jvoisin Date: Sat, 1 Feb 2014 15:44:24 +0000 Subject: Build some testfiles at runtime --- test/libtest.py | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) (limited to 'test/libtest.py') diff --git a/test/libtest.py b/test/libtest.py index c2cb2f1..fdef091 100644 --- a/test/libtest.py +++ b/test/libtest.py @@ -73,17 +73,15 @@ class TestFileAttributes(unittest.TestCase): ''' test various stuffs about files (readable, writable, exist, ...) ''' - def test_not_writtable(self): - ''' test MAT's behaviour on non-writable file''' - self.assertFalse(MAT.mat.create_class_file('not_writtable', False, add2archive=True)) - def test_not_exist(self): ''' test MAT's behaviour on non-existent file''' - self.assertFalse(MAT.mat.create_class_file('ilikecookies', False, add2archive=True)) + self.assertFalse(MAT.mat.create_class_file('non_existent_file', False, add2archive=True)) def test_empty(self): ''' test MAT's behaviour on empty file''' + open('empty_file', 'a').close() self.assertFalse(MAT.mat.create_class_file('empty_file', False, add2archive=True)) + os.remove('empty_file') class TestSecureRemove(unittest.TestCase): -- cgit v1.3