def test_get_default(self):
     # Check default config
     default_config = MemoryKeyValueStore.get_default_config()
     self.assertIsInstance(default_config, dict)
     # - Should just contain cache element property, which is a nested
     #   plugin config with no default type.
     self.assertIn('cache_element', default_config)
     self.assertIn('type', default_config['cache_element'])
     self.assertIsNone(default_config['cache_element']['type'])
Ejemplo n.º 2
0
 def test_get_default(self):
     # Check default config
     default_config = MemoryKeyValueStore.get_default_config()
     nose.tools.assert_is_instance(default_config, dict)
     # - Should just contain cache element property, which is a nested plugin
     #   config with no default type.
     nose.tools.assert_in('cache_element', default_config)
     nose.tools.assert_in('type', default_config['cache_element'])
     nose.tools.assert_is_none(default_config['cache_element']['type'])
Ejemplo n.º 3
0
 def test_get_default(self):
     # Check default config
     default_config = MemoryKeyValueStore.get_default_config()
     self.assertIsInstance(default_config, dict)
     # - Should just contain cache element property, which is a nested
     #   plugin config with no default type.
     self.assertIn('cache_element', default_config)
     self.assertIn('type', default_config['cache_element'])
     self.assertIsNone(default_config['cache_element']['type'])