def test_presentation(self):
    'Test handle presentation message.'
    self._add_sensor(1)
    self.gateway.logic('1;1;0;0;7;Humidity Sensor\n')
    calls = [mock.call('/1/1/1/+/+', self.gateway.recv, 0), mock.call('/1/1/2/+/+', self.gateway.recv, 0), mock.call('/1/+/4/+/+', self.gateway.recv, 0)]
    self.mock_sub.assert_has_calls(calls)
Test handle presentation message.
def test_presentation(self):
    
    self._add_sensor(1)
    self.gateway.logic('1;1;0;0;7;Humidity Sensor\n')
    calls = [mock.call('/1/1/1/+/+', self.gateway.recv, 0), mock.call('/1/1/2/+/+', self.gateway.recv, 0), mock.call('/1/+/4/+/+', self.gateway.recv, 0)]
    self.mock_sub.assert_has_calls(calls)