def test_send_float_even(self): config = UtilsTester.config['denon'] driver = DenonAVR(config, Mock()) driver.conn = Mock() driver.conn.recv = Mock(return_value=bytearray()) driver.connected = True driver.sendCommandRaw('command3', config['commands']['command3'], '12') driver.conn.send.assert_called_with('MV12\r\n'.encode())
def test_simple(self): config = UtilsTester.config['denon'] driver = DenonAVR(config, Mock()) driver.conn = Mock() driver.conn.recv = Mock(return_value=bytearray()) driver.connected = True driver.sendCommandRaw('command1', config['commands']['command1']) driver.conn.send.assert_called_with('VL\r\n'.encode())