Skip to content

Commit

Permalink
Fix test for switch11, encoding still doesn't work though
Browse files Browse the repository at this point in the history
  • Loading branch information
rrooggiieerr committed Jun 27, 2024
1 parent 200d8c4 commit 5993f6f
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions tests/protocols/test_switch11.py
Original file line number Diff line number Diff line change
Expand Up @@ -40,27 +40,27 @@ def test_decode_4(self) -> None:
def test_encode_1(self) -> None:
encoded = switch11.encode(id=34037, unit=1, state=True)
self.assertEqual(
"011010010110011010101001101001010101100110010110011010100110011002",
"100101010110011010101001101001010101100110010110011010100110011002",
encoded,
)

def test_encode_2(self) -> None:
encoded = switch11.encode(id=34037, unit=1, state=False)
self.assertEqual(
"011010011010011010101001101001010101100110010110011010100110011002",
"100101011010011010101001101001010101100110010110011010100110011002",
encoded,
)

def test_encode_3(self) -> None:
encoded = switch11.encode(id=34037, unit=0, state=True)
self.assertEqual(
"011010101001011010101001101001010101100110010110011010100110011002",
"100101101001011010101001101001010101100110010110011010100110011002",
encoded,
)

def test_encode_4(self) -> None:
encoded = switch11.encode(id=34037, unit=0, state=False)
self.assertEqual(
"011010100110011010101001101001010101100110010110011010100110011002",
"100101100110011010101001101001010101100110010110011010100110011002",
encoded,
)

0 comments on commit 5993f6f

Please sign in to comment.