'Testing initialization of a ConfigManager.'

def testInit(self):

    conf = config_lib.GrrConfigManager()
    conf.DEFINE_string('MemoryDriver.device_path', 'Default    Value', 'Help')
    conf.DEFINE_context('Platform:Windows')
    conf.DEFINE_context('Client    Context')
    conf.DEFINE_context('Platform:Linux')
    data = '\nPlatform:Linux:\n                MemoryDriver.device_path:    /dev/pmem\n\nPlatform:Windows:\n                MemoryDriver.device_path:    \\\\\\\\.\\\\pmem\n'
    conf.Initialize(parser=config_lib.YamlParser, data=data)
    self.assertEqual(conf.Get('MemoryDriver.device_path', context=('Client    Context', 'Platform:Linux')), '/dev/pmem')
    self.assertEqual(conf.Get('MemoryDriver.device_path', context=('Client    Context', 'Platform:Windows')), '\\\\.\\pmem')
