def test_consumer_config(self): conf = ConsumerConfiguration() self.assertEqual(conf.consumer_type(), ConsumerType.Exclusive) conf.consumer_type(ConsumerType.Shared) self.assertEqual(conf.consumer_type(), ConsumerType.Shared) self.assertEqual(conf.consumer_name(), '') conf.consumer_name("my-name") self.assertEqual(conf.consumer_name(), "my-name")
def test_consumer_config(self): conf = ConsumerConfiguration() self.assertEqual(conf.consumer_type(), ConsumerType.Exclusive) conf.consumer_type(ConsumerType.Shared) self.assertEqual(conf.consumer_type(), ConsumerType.Shared) self.assertEqual(conf.consumer_name(), "") conf.consumer_name("my-name") self.assertEqual(conf.consumer_name(), "my-name") self.assertEqual(conf.replicate_subscription_state_enabled(), False) conf.replicate_subscription_state_enabled(True) self.assertEqual(conf.replicate_subscription_state_enabled(), True)