def test_strip_hash(self):
     h = {'a': {'b': {'x': 'y'}}, "c": [1, 2, 3]}
     self.assertEqual(oca.strip_hash(h, 'a.b'), {'x': 'y'})
     self.assertRaises(config_exception.ConfigException, oca.strip_hash, h,
                       'a.nonexistent')
     self.assertRaises(config_exception.ConfigException, oca.strip_hash, h,
                       'a.c')
 def test_strip_hash(self):
     h = {'a': {'b': {'x': 'y'}}, "c": [1, 2, 3]}
     self.assertEqual(oca.strip_hash(h, 'a.b'), {'x': 'y'})
     self.assertRaises(config_exception.ConfigException,
                       oca.strip_hash, h, 'a.nonexistent')
     self.assertRaises(config_exception.ConfigException,
                       oca.strip_hash, h, 'a.c')
def test_strip_hash():
    h = {'a': {'b': {'x': 'y'}}, "c": [1, 2, 3]}
    assert_equals(strip_hash(h, 'a.b'), {'x': 'y'})
    assert_raises(ConfigException, strip_hash, h, 'a.nonexistent')
    assert_raises(ConfigException, strip_hash, h, 'a.c')