Skip to content

Commit

Permalink
Fix keyword argument
Browse files Browse the repository at this point in the history
  • Loading branch information
buergi committed Dec 9, 2020
1 parent 069ca50 commit 5d1e3f8
Showing 1 changed file with 7 additions and 4 deletions.
11 changes: 7 additions & 4 deletions test/remote_value_tests/remote_value_control_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,8 @@ def test_set(self):
self.assertEqual(xknx.telegrams.qsize(), 1)
telegram = xknx.telegrams.get_nowait()
self.assertEqual(
telegram, Telegram(GroupAddress("1/2/3"), payload=DPTBinary(0xB))
telegram,
Telegram(destination_address=GroupAddress("1/2/3"), payload=DPTBinary(0xB)),
)

def test_process(self):
Expand All @@ -51,7 +52,9 @@ def test_process(self):
remote_value = RemoteValueControl(
xknx, group_address=GroupAddress("1/2/3"), value_type="stepwise"
)
telegram = Telegram(group_address=GroupAddress("1/2/3"), payload=DPTBinary(0xB))
telegram = Telegram(
destination_address=GroupAddress("1/2/3"), payload=DPTBinary(0xB)
)
self.assertEqual(remote_value.value, None)
self.loop.run_until_complete(asyncio.Task(remote_value.process(telegram)))
self.assertEqual(remote_value.value, 25)
Expand All @@ -64,12 +67,12 @@ def test_to_process_error(self):
)
with self.assertRaises(CouldNotParseTelegram):
telegram = Telegram(
group_address=GroupAddress("1/2/3"), payload=DPTArray(0x01)
destination_address=GroupAddress("1/2/3"), payload=DPTArray(0x01)
)
self.loop.run_until_complete(asyncio.Task(remote_value.process(telegram)))
with self.assertRaises(ConversionError):
telegram = Telegram(
group_address=GroupAddress("1/2/3"), payload=DPTBinary(0x10)
destination_address=GroupAddress("1/2/3"), payload=DPTBinary(0x10)
)
self.loop.run_until_complete(asyncio.Task(remote_value.process(telegram)))
# pylint: disable=pointless-statement
Expand Down

0 comments on commit 5d1e3f8

Please sign in to comment.