def test_boolean_series_format_validate_negative_empty(self):
     filepath = self.get_data_path('empty_file.txt')
     format = BooleanSeriesFormat(filepath, mode='r')
     with self.assertRaisesRegex(ValidationError, 'one data record'):
         format.validate()
 def test_boolean_series_format_validate_negative_col_count(self):
     filepath = self.get_data_path('coordinates.tsv')
     format = BooleanSeriesFormat(filepath, mode='r')
     with self.assertRaisesRegex(ValidationError, 'BooleanSeriesFormat'):
         format.validate()
 def test_boolean_series_format_validate_negative_cell_values(self):
     filepath = self.get_data_path('predictions.tsv')
     format = BooleanSeriesFormat(filepath, mode='r')
     with self.assertRaisesRegex(ValidationError, 'BooleanSeriesFormat'):
         format.validate()
 def test_boolean_series_format_validate_positive(self):
     filepath = self.get_data_path('outliers.tsv')
     format = BooleanSeriesFormat(filepath, mode='r')
     # These should both just succeed
     format.validate('min')
     format.validate('max')