42 from rosgraph.names
import make_global_ns, ns_join
48 from rospy.impl.paramserver
import get_param_server_cache
49 ps = get_param_server_cache()
50 self.assert_(ps
is not None)
53 self.fail(
"get should fail on non-existent key")
56 for i
in range(0, 10):
57 k =
'key-%s%s'%(i, random.randint(0, 1000))
58 v =
'value-%s'%random.randint(0, 1000)
61 self.fail(
"update should fail on non-existent key "+k)
66 self.assertEquals(v, ps.get(k))
67 v =
'value-%s'%random.randint(0, 1000)
69 self.assertEquals(v, ps.get(k))
74 self.fail(
'get should fail on deleted key')
Unit tests for rospy.paramserver module.
def test_param_server_cache(self)