'Should deny authorization, the email of the tester won\'t match.
This will not match since the email in the assertion will fail
the regex test. It is set to match any @example.com address.
But the incoming value is set to eviltester@example.org.
RuleProcessor should raise ValidationError.'

def test_rule_engine_no_regex_match(self):

    mapping = mapping_fixtures.MAPPING_LARGE
    assertion = mapping_fixtures.BAD_TESTER_ASSERTION
    rp = mapping_utils.RuleProcessor(FAKE_MAPPING_ID, mapping['rules'])
    self.assertRaises(exception.ValidationError, rp.process, assertion)
