1. Prasanna kanagasabai
  2. pyFirmata


Tino de Bruijn  committed cb5d071

added doctest running of util.py to testsuite

  • Participants
  • Parent commits e06687c
  • Branches default

Comments (0)

Files changed (1)

File tests.py

View file
  • Ignore whitespace
 import unittest
+import doctest
 import serial
 import pyfirmata
 from pyfirmata import mockup
     if not options.mockup:
         print "Running normal suite. Also consider running the mockup (-m, --mockup) suite"
+        from pyfirmata import util
+        print "Running doctests for pyfirmata.util. (No output = No errors)"
+        doctest.testmod(util)
+        print "Done running doctests"
     if options.mockup:
         print "Running the mockup test suite"