'Test Creating ec2 credential with missing project_id.
Call ``POST /credentials``.'

def test_create_ec2_credential_with_missing_project_id(self):

    (_, ref) = unit.new_ec2_credential(user_id=self.user['id'], project_id=None)
    self.post('/credentials', body={'credential': ref}, expected_status=http_client.BAD_REQUEST)
