File: runtests.py

package info (click to toggle)
python-unicodecsv 0.9.0-1
  • links: PTS, VCS
  • area: main
  • in suites: wheezy
  • size: 164 kB
  • sloc: python: 849; makefile: 11
file content (15 lines) | stat: -rw-r--r-- 344 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
import unittest2
import doctest

def get_suite():
    loader = unittest2.TestLoader()
    suite = loader.discover('unicodecsv')
    suite.addTest(doctest.DocTestSuite('unicodecsv'))

    return suite

if __name__ == '__main__':
    result = unittest2.TestResult()
    get_suite().run(result)
    for error in result.errors:
        print error