'Tests the update functionality'

@decorators.idempotent_id('080a9b1a-c009-47c0-9979-5305bf72e3dc')
def test_update_consumer(self):

    consumer = self._create_consumer()
    new_description = data_utils.rand_name('test_update_consumer')
    self.oauth_consumers_client.update_consumer(consumer['id'], new_description)
    updated_consumer = self.oauth_consumers_client.show_consumer(consumer['id'])['consumer']
    self.assertEqual(new_description, updated_consumer['description'])
