Skip to content

Commit

Permalink
Change second write
Browse files Browse the repository at this point in the history
  • Loading branch information
tersal committed Dec 5, 2024
1 parent 4a1e685 commit f4450f0
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/python_testing/TC_WASHERCTRL_2_1.py
Original file line number Diff line number Diff line change
Expand Up @@ -115,9 +115,9 @@ async def test_TC_WASHERCTRL_2_1(self):

# Try to write an invalid value (outside supported range)
self.step(6)
result = await self.default_controller.WriteAttribute(self.dut_node_id, [(endpoint, Clusters.LaundryWasherControls.Attributes.SpinSpeedCurrent(numSpinSpeeds))])
asserts.assert_equal(result[0].Status, Status.ConstraintError,
"Trying to write an invalid value should return ConstraintError")
result = await self.write_single_attribute(attribute_value=Clusters.LaundryWasherControls.Attributes.SpinSpeedCurrent(numSpinSpeeds),
endpoint_id=endpoint, expect_success=False)
asserts.assert_equal(result, Status.ConstraintError, "Trying to write an invalid value should return ConstraintError")


if __name__ == "__main__":
Expand Down

0 comments on commit f4450f0

Please sign in to comment.