#!coding:utf-8

import RPi.GPIO as IO
import time

IO.setmode(IO.BCM)
IO.setup(18, IO.OUT)

IO.output(18, IO.HIGH)
time.sleep(1)
IO.output(18, IO.LOW)
time.sleep(1)

@@ -20,36 +20,257 @@
 ort 
-RPi.GPIO as IO%0Aimport time%0A%0A
+os%0Aimport sys%0Aimport time%0Aimport unittest%0Aif os.getlogin() == 'pi':%0A    import RPi.GPIO as IO%0Aelse:%0A    sys.path.append(os.path.dirname(__file__))%0A    from RpiTest import GPIO as IO%0A%0A%0Aclass gpiotest(unittest.TestCase):%0A    def testIO(self):%0A        
 IO.s
@@ -284,16 +284,24 @@
 IO.BCM)%0A
+        
 IO.setup
@@ -313,17 +313,24 @@
 IO.OUT)%0A
-%0A
+        
 IO.outpu
@@ -344,16 +344,24 @@
 O.HIGH)%0A
+        
 time.sle
@@ -366,16 +366,24 @@
 leep(1)%0A
+        
 IO.outpu
@@ -396,16 +396,24 @@
 IO.LOW)%0A
+        
 time.sle
@@ -398,28 +398,76 @@
 .LOW)%0A        time.sleep(1)%0A
+%0Aif __name__ == '__main__':%0A    unittest.main()%0A

change test_gpio