コード例 #1
0
 def test_get_key_nested_key_3(self):
     expected = "value11"
     obtained = get_key(TEST_TEMPLATE, "key11")
     self.assertEquals(expected, obtained)
コード例 #2
0
 def test_set_value_2(self):
     data = copy.deepcopy(TEST_TEMPLATE)
     expected = "foo"
     set_value(data, "key11", expected)
     obtained = get_key(data, "key11")
     self.assertEquals(expected, obtained)
コード例 #3
0
 def test_get_key_simple_key(self):
     expected = "value1"
     obtained = get_key(TEST_TEMPLATE, "key1")
     self.assertEquals(expected, obtained)