'Test creating non-ec2 credential.
Call ``POST /credentials``.'

def test_create_non_ec2_credential(self):

    (blob, ref) = unit.new_cert_credential(user_id=self.user['id'])
    r = self.post('/credentials', body={'credential': ref})
    self.assertValidCredentialResponse(r, ref)
    access = blob['access'].encode('utf-8')
    self.assertNotEqual(hashlib.sha256(access).hexdigest(), r.result['credential']['id'])
