@mark_requirement(Requirements.DATUM_GENERAL_REQ)
def test_probe_text_file_failure_bad_file(self):

    def detect(context):
        with context.probe_text_file('foobar.txt', 'abcde'):
            pass
    with self.assertRaises(FormatRequirementsUnmet) as result:
        apply_format_detector(self._dataset_root, detect)
    self.assertEqual(result.exception.failed_alternatives, ('foobar.txt: abcde',))
@mark_requirement(Requirements.DATUM_GENERAL_REQ)
def test_probe_text_file_failure_bad_file(self):

    def detect(context):
        with context.probe_text_file('foobar.txt', 'abcde'):
            pass
    with self.assertRaises(FormatRequirementsUnmet) as result:
        apply_format_detector(self._dataset_root, detect)
    self.assertEqual(result.exception.failed_alternatives, ('foobar.txt: abcde',))