File: test.py

package info (click to toggle)
py3dns 4.0.2-4
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 360 kB
  • sloc: python: 1,984; makefile: 10; sh: 7
file content (14 lines) | stat: -rwxr-xr-x 310 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
#! /usr/bin/python3

import sys
import unittest
import doctest
import DNS
from DNS.tests import test_suite

result = unittest.TextTestRunner().run(test_suite())
if result.wasSuccessful():
    print("Test run successful.", file=sys.stderr)
    sys.exit(0)
print("Test run failed.", file=sys.stderr)
sys.exit(1)