def setUpClass(cls): test_util.rabbitmqctl([ 'set_topic_permissions', 'guest', 'amq.topic', '^{username}.Authorised', '^{username}.Authorised' ]) cls.authorised_topic = '/topic/guest.AuthorisedTopic' cls.restricted_topic = '/topic/guest.RestrictedTopic'
def tearDownClass(cls): test_util.rabbitmqctl(['clear_topic_permissions', 'guest'])