'Test security group doesn\'t explode with a 500 on bad input.
Originally reported with bug
https://bugs.launchpad.net/nova/+bug/1239723'

def test_security_group_fuzz(self):

    server = self._build_minimal_create_server_request('sg-fuzz')
    server['security_groups'] = {'name': 'sec'}
    resp = self.api.api_post('/servers', {'server': server}, check_response_status=False)
    self.assertEqual(400, resp.status)
