Example #1
0
 def test_invalid_values(self, core_esp32, value):
     with pytest.raises(Invalid, match="This variable only supports"):
         pins._translate_pin(value)
Example #2
0
    def test_valid_values(self, core_esp32, value, expected):
        actual = pins._translate_pin(value)

        assert actual == expected