Пример #1
0
 def test_to_yaml_no_defaults(self):
     config = LoggerStorageConfiguration()
     config._conversation_logger = "convologger"
     data = {}
     config.to_yaml(data, False)
     self.assertEquals({'conversation_logger': 'convologger'}, data)
Пример #2
0
 def test_to_yaml_defaults(self):
     config = LoggerStorageConfiguration()
     data = {}
     config.to_yaml(data, True)
     self.assertEquals({'conversation_logger': 'conversation'}, data)