I've this function:
def step_list_kafka_topics(context):
topics = context.kafka.list_kafka_topics()
if 'my-topic-1' in topics:
print('TRUE: {}'.format(topics))
else:
print('FALSE {}'.format(topics))
This is the response I get:
FALSE {b'my-topic-1': None, b'my-topic-2': None, b'my-topic-3': None}
I also tried if 'my-topic-1' in topics.keys() but got the same result.
What am I doing wrong?