summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDevaev Maxim <[email protected]>2019-04-06 23:47:31 +0300
committerDevaev Maxim <[email protected]>2019-04-06 23:47:31 +0300
commit484a6d729a0a267c67255e56bd379c99506be825 (patch)
treef8fd1170426c66881d9aed7a8165947d730bfea2
parent008554ce4b9d3f7b6e4a039dff5745e9f1f5260e (diff)
refactoring
-rw-r--r--tests/test_gpio.py10
1 files changed, 5 insertions, 5 deletions
diff --git a/tests/test_gpio.py b/tests/test_gpio.py
index a40020c0..b5197590 100644
--- a/tests/test_gpio.py
+++ b/tests/test_gpio.py
@@ -28,22 +28,22 @@ def test_gpio__loopback_initial_false() -> None:
# pylint: disable=singleton-comparison
with gpio.bcm():
assert gpio.set_output(0) == 0
- assert gpio.read(0) == False # noqa: E712
+ assert gpio.read(0) is False
gpio.write(0, True)
- assert gpio.read(0) == True # noqa: E712
+ assert gpio.read(0) is True
def test_gpio__loopback_initial_true() -> None:
# pylint: disable=singleton-comparison
with gpio.bcm():
assert gpio.set_output(0, True) == 0
- assert gpio.read(0) == True # noqa: E712
+ assert gpio.read(0) is True
gpio.write(0, False)
- assert gpio.read(0) == False # noqa: E712
+ assert gpio.read(0) is False
def test_gpio__input() -> None:
# pylint: disable=singleton-comparison
with gpio.bcm():
assert gpio.set_input(0) == 0
- assert gpio.read(0) == False # noqa: E712
+ assert gpio.read(0) is False