'Test that the Assertion object is built properly.
The Assertion doesn\'t need to be signed in this test, so
_sign_assertion method is patched and doesn\'t alter the assertion.'

def test_verify_assertion_object(self):

    with mock.patch.object(keystone_idp, '_sign_assertion', side_effect=(lambda x: x)):
        generator = keystone_idp.SAMLGenerator()
        response = generator.samlize_token(self.ISSUER, self.RECIPIENT, self.SUBJECT, self.SUBJECT_DOMAIN, self.ROLES, self.PROJECT, self.PROJECT_DOMAIN)
    assertion = response.assertion
    self.assertEqual(self.ASSERTION_VERSION, assertion.version)
