def test_recv_wrong_prefix(self):
    'Test recv method with wrong topic prefix.'
    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('wrong/1/1/2/0/1', '', 0)
    ret = self.gateway.handle_queue()
    self.assertEqual(ret, None)
Test recv method with wrong topic prefix.
def test_recv_wrong_prefix(self):
    
    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('wrong/1/1/2/0/1', , 0)
    ret = self.gateway.handle_queue()
    self.assertEqual(ret, None)