source: mod_gnutls/test/unittest-mgstest.py @ b6ce8ad

main mod_gnutls/0.12.0
Last change on this file since b6ce8ad was c6d4701, checked in by Fiona Klute <fiona.klute@…>, 2 years ago

mgstest.tests.TestRequest?: Move tests to unittest

The tests previously done via doctest didn't really document
anything. Running them via unittest is more flexible and might allow
for future extensions.

  • Property mode set to 100755
File size: 326 bytes
Line 
1#!/usr/bin/python3
2import os
3import sys
4import unittest
5
6if __name__ == "__main__":
7    suite = unittest.defaultTestLoader.discover(
8        'mgstest', top_level_dir=os.environ.get('srcdir', '.'))
9    result = unittest.TextTestRunner(verbosity=2, buffer=True).run(suite)
10    if not result.wasSuccessful():
11        sys.exit(1)
Note: See TracBrowser for help on using the repository browser.