'Exception raised without `type` in create request.'

def test_validate_credential_without_type_fails(self):

    request_to_validate = {'blob': 'some    credential    blob', 'user_id': uuid.uuid4().hex}
    self.assertRaises(exception.SchemaValidationError, self.create_credential_validator.validate, request_to_validate)
