def test_dont_mask_unset_value(self): no_config = configure.ConfigValue(configure.NOT_SET, None, None) self.assertEqual(no_config.value, configure.NOT_SET) no_config.mask_value() self.assertEqual(no_config.value, configure.NOT_SET)
def test_config_value_is_masked(self): config_value = configure.ConfigValue('fake_access_key', 'config_file', 'aws_access_key_id') self.assertEqual(config_value.value, 'fake_access_key') config_value.mask_value() self.assertEqual(config_value.value, '****************_key')