'Test for listing consumers'

@decorators.idempotent_id('09ca50de-78f2-4ffb-ac71-f2254036b2b8')
def test_list_consumers(self):

    new_consumer_one = self._create_consumer()
    new_consumer_two = self._create_consumer()
    consumer_list = self.oauth_consumers_client.list_consumers()['consumers']
    id_list = [consumer['id'] for consumer in consumer_list]
    self.assertIn(new_consumer_one['id'], id_list)
    self.assertIn(new_consumer_two['id'], id_list)
