def test_size(self): self.assertEqual(text_file.size('test_file/log_data'), 19) self.assertEqual(text_file.size('test_file/data_access'), 12)
def test_join(self): file_filter = FileFilter(['log_data', 'data_access']) text_file.join('test_file/join.log', 'test_file', file_filter) size = text_file.size('test_file/join.log') self.assertEqual(size, 31)