コード例 #1
0
 def test__invalid_path_assignment_to_path(self):
     with self.assertRaises(exceptions.InvalidPath):
         utils.assign_path(self.conf, "a.g.d", 3)
コード例 #2
0
 def test__assign_path_direct(self):
     utils.assign_path(self.conf, 'd', 5)
     self.assertEquals(self.conf['d'], 5)
コード例 #3
0
 def test__invalid_path_assignment_to_key(self):
     with self.assertRaises(exceptions.CannotSetValue):
         utils.assign_path(self.conf, "a.b.d", 3)