示例#1
0
 def test_is_file_structure_valid_returns_true_on_three_headers(self):
     fv = FileValidator()
     result = fv.is_file_structure_valid(['a', 'b', 'c'])
     self.assertTrue(result)
示例#2
0
 def test_is_file_structure_valid_returns_false_on_empty_headers(self):
     fv = FileValidator()
     result = fv.is_file_structure_valid([])
     self.assertFalse(result)
示例#3
0
 def test_is_file_structure_valid_returns_false_on_missing_headers(self):
     fv = FileValidator()
     result = fv.is_file_structure_valid(None)
     self.assertFalse(result)
示例#4
0
 def test_is_file_structure_valid_returns_false_on_too_many_headers(self):
     fv = FileValidator()
     result = fv.is_file_structure_valid(['a', 'b', 'c', 'd'])
     self.assertFalse(result)