def test__invalid_path_assignment_to_path(self): with self.assertRaises(exceptions.InvalidPath): utils.assign_path(self.conf, "a.g.d", 3)
def test__assign_path_direct(self): utils.assign_path(self.conf, 'd', 5) self.assertEquals(self.conf['d'], 5)
def test__invalid_path_assignment_to_key(self): with self.assertRaises(exceptions.CannotSetValue): utils.assign_path(self.conf, "a.b.d", 3)