'Tests disabling a service with no reason given. Then enables it
to see the change in the response body.'

def test_update_disabled_no_reason_then_enable(self):

    service = self.start_service('compute', 'fake-compute-host').service_ref
    resp = self.controller.update(self.req, service.uuid, body={'status': 'disabled'})
    expected_resp = {'service': {'status': 'disabled', 'state': 'up', 'binary': 'nova-compute', 'host': 'fake-compute-host', 'zone': 'nova', 'updated_at': mock.sentinel.updated_time, 'disabled_reason': None, 'id': service.uuid, 'forced_down': False}}
    self.assertDictEqual(expected_resp, resp)
    req = fakes.HTTPRequest.blank('', version=services_v21.UUID_FOR_ID_MIN_VERSION)
    resp = self.controller.update(req, service.uuid, body={'status': 'enabled'})
    expected_resp['service']['status'] = 'enabled'
    self.assertDictEqual(expected_resp, resp)
