'Check whether RuleProcessor discards non string objects.
Expect RuleProcessor to discard non string object, which
is required for a correct rule match. RuleProcessor will result with
ValidationError.'

def test_rule_engine_fails_after_discarding_nonstring(self):

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