Since the test is `test_create_missing_specs_name`, we should define
the the body like `body = {'qos_specs': {'a': 'b'}}`. And add a test
to cover the invalid body case.
Change-Id: Ib1cf9a8b5bfddc0091e28e3765a36c75044642f3
Closes-bug: #
1370308
def test_create_no_body(self):
self._create_qos_specs_bad_body(body=None)
- def test_create_missing_specs_name(self):
+ def test_create_invalid_body(self):
body = {'foo': {'a': 'b'}}
self._create_qos_specs_bad_body(body=body)
+ def test_create_missing_specs_name(self):
+ body = {'qos_specs': {'a': 'b'}}
+ self._create_qos_specs_bad_body(body=body)
+
def test_create_malformed_entity(self):
body = {'qos_specs': 'string'}
self._create_qos_specs_bad_body(body=body)