示例#1
0
文件: test_utils.py 项目: blin/zabby
 def test_raises_exception_if_file_is_empty(self):
     ensure_removed(FILE_PATH)
     open(FILE_PATH, mode='w').close()
     assert_raises(OperatingSystemError, lines_from_file, FILE_PATH)
示例#2
0
 def test_raises_exception_if_file_is_empty(self):
     ensure_removed(FILE_PATH)
     open(FILE_PATH, mode='w').close()
     assert_raises(OperatingSystemError, lines_from_file, FILE_PATH)
示例#3
0
文件: test_utils.py 项目: blin/zabby
 def test_raises_exception_if_file_is_not_found(self):
     ensure_removed(FILE_PATH)
     assert_raises(IOError, lines_from_file, FILE_PATH)
示例#4
0
 def test_raises_exception_if_file_is_not_found(self):
     ensure_removed(FILE_PATH)
     assert_raises(IOError, lines_from_file, FILE_PATH)