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

    def detect(context):
        context.fail('abcde')
    with self.assertRaises(FormatRequirementsUnmet) as result:
        apply_format_detector(self._dataset_root, detect)
    self.assertEqual(result.exception.failed_alternatives, ('abcde',))
@mark_requirement(Requirements.DATUM_GENERAL_REQ)
def test_fail(self):

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