Skip to content
Permalink
Browse files

free tests from RPi.GPIO

  • Loading branch information...
root
root committed Dec 27, 2013
1 parent 52df2d7 commit 619a1fa661e8dd1fc2a9bfe4ce0a9cfc2f4acc07
Showing with 2 additions and 6 deletions.
  1. +1 −3 tests/test_out.py
  2. +1 −3 tests/test_trigger.py
@@ -1,15 +1,13 @@
from rpitc.io import IO
from rpitc.io.out import Out
import RPi.GPIO as GPIO

class TestOut:

def setup_method(self, method):
self.out = Out(7)

def teardown_method(self, method):
GPIO.output(self.out.pin, GPIO.LOW)
GPIO.cleanup()
self.out.off()

def test_init(self):
assert isinstance(self.out, Out)
@@ -1,6 +1,5 @@
from rpitc.io import IO
from rpitc.io.trigger import Trigger
import RPi.GPIO as GPIO
import time

class TestTrigger:
@@ -9,8 +8,7 @@ def setup_method(self, method):
self.trigger = Trigger(7, delay=1, status=IO.OFF)

def teardown_method(self, method):
GPIO.output(self.trigger.pin, GPIO.LOW)
GPIO.cleanup()
self.trigger.off()

def test_init(self):
assert isinstance(self.trigger, Trigger)

0 comments on commit 619a1fa

Please sign in to comment.
You can’t perform that action at this time.