def test_store_uuid_true_with_generated_uuid(self): context.app_config.save('credentials', 'store_uuid', True) context.app_config.save('credentials', 'uuid', '') context._setup_app_config(config_file=self.fake_config_file) assert_that(context.app_config['credentials']['store_uuid'], equal_to(True)) assert_that(context.app_config['credentials']['uuid'], equal_to('')) context.uuid = host.uuid() context._setup_host_details() context._setup_app_config(config_file=self.fake_config_file) assert_that(context.app_config['credentials']['uuid'], is_not(''))
def test_store_uuid_false_with_generated_uuid(self): context.app_config.save('credentials', 'store_uuid', False) context.app_config.save('credentials', 'uuid', None) context._setup_app_config(config_file=self.fake_config_file) assert_that(context.app_config['credentials']['store_uuid'], equal_to(False)) assert_that(context.app_config['credentials']['uuid'], equal_to(None)) context.uuid = host.uuid() context._setup_host_details() context._setup_app_config(config_file=self.fake_config_file) assert_that(context.app_config['credentials']['uuid'], equal_to(None))