def test_nested_prefix(self):
    'Test recv method with nested topic prefix.'
    self._setup('test/test-in', 'test/test-out')
    sensor = self._add_sensor(1)
    sensor.children[1] = ChildSensor(1, self.gateway.const.Presentation.S_HUM)
    sensor.children[1].values[self.gateway.const.SetReq.V_HUM] = '20'
    self.gateway.recv('test/test-in/1/1/2/0/1', '', 0)
    ret = self.gateway.handle_queue()
    self.assertEqual(ret, '1;1;1;0;1;20\n')
    self.gateway.recv('test/test-in/1/1/2/0/1', '', 1)
    ret = self.gateway.handle_queue()
    self.assertEqual(ret, '1;1;1;1;1;20\n')
Test recv method with nested topic prefix.
def test_nested_prefix(self):
    
    self._setup('test/test-in', 'test/test-out')
    sensor = self._add_sensor(1)
    sensor.children[1] = ChildSensor(1, self.gateway.const.Presentation.S_HUM)
    sensor.children[1].values[self.gateway.const.SetReq.V_HUM] = '20'
    self.gateway.recv('test/test-in/1/1/2/0/1', , 0)
    ret = self.gateway.handle_queue()
    self.assertEqual(ret, '1;1;1;0;1;20\n')
    self.gateway.recv('test/test-in/1/1/2/0/1', , 1)
    ret = self.gateway.handle_queue()
    self.assertEqual(ret, '1;1;1;1;1;20\n')