def test_create_invalid_endpoint_group(self):
    'POST /OS-EP-FILTER/endpoint_groups\n\n        Invalid endpoint group creation test case.\n\n        '
    invalid_body = copy.deepcopy(self.DEFAULT_ENDPOINT_GROUP_BODY)
    invalid_body['endpoint_group']['filters'] = {'foobar': 'admin'}
    self.post(self.DEFAULT_ENDPOINT_GROUP_URL, body=invalid_body, expected_status=http_client.BAD_REQUEST)
POST /OS-EP-FILTER/endpoint_groups

Invalid endpoint group creation test case.
def test_create_invalid_endpoint_group(self):
    'POST /OS-EP-FILTER/endpoint_groups\n\n        Invalid endpoint group creation test case.\n\n        '
    invalid_body = copy.deepcopy(self.DEFAULT_ENDPOINT_GROUP_BODY)
    invalid_body['endpoint_group']['filters'] = {'foobar': 'admin'}
    self.post(self.DEFAULT_ENDPOINT_GROUP_URL, body=invalid_body, expected_status=http_client.BAD_REQUEST)