PNG  IHDR;IDATxܻn0K )(pA 7LeG{ §㻢|ذaÆ 6lذaÆ 6lذaÆ 6lom$^yذag5bÆ 6lذaÆ 6lذa{ 6lذaÆ `}HFkm,mӪôô! x|'ܢ˟;E:9&ᶒ}{v]n&6 h_tڠ͵-ҫZ;Z$.Pkž)!o>}leQfJTu іچ\X=8Rن4`Vwl>nG^is"ms$ui?wbs[m6K4O.4%/bC%t Mז -lG6mrz2s%9s@-k9=)kB5\+͂Zsٲ Rn~GRC wIcIn7jJhۛNCS|j08yiHKֶۛkɈ+;SzL/F*\Ԕ#"5m2[S=gnaPeғL lذaÆ 6l^ḵaÆ 6lذaÆ 6lذa; _ذaÆ 6lذaÆ 6lذaÆ RIENDB` #----------------------------------------------------------------------------- # Copyright (c) 2008-2010, David P. D. Moss. All rights reserved. # # Released under the BSD license. See the LICENSE file for details. #----------------------------------------------------------------------------- """Runs all netaddr unit tests.""" from os.path import abspath, basename, dirname, join as pathjoin import sys import glob import doctest import unittest sys.path.insert(0, abspath(pathjoin(dirname(__file__), '..', '..'))) #----------------------------------------------------------------------------- def test_suite_all(): test_dirs = [ 'ip', 'eui', 'strategy', 'core' ] base_path = abspath(pathjoin(dirname(__file__), '..')) py_ver_dir = '2.x' if sys.version_info[0] == 3: py_ver_dir = '3.x' # Gather list of files containing tests. test_files = [] for entry in test_dirs: test_path = pathjoin(base_path, "tests", py_ver_dir, entry, "*.txt") files = glob.glob(test_path) test_files.extend(files) sys.stdout.write('testdir: %s\n' % '\n'.join(test_files)) # Add anything to the skiplist that we want to leave out. skiplist = [] # Exclude any entries from the skip list. test_files = [t for t in test_files if basename(t) not in skiplist] # Build and return a complete unittest test suite. suite = unittest.TestSuite() for test_file in test_files: doctest_suite = doctest.DocFileSuite(test_file, optionflags=doctest.ELLIPSIS, module_relative=False) suite.addTest(doctest_suite) return suite #----------------------------------------------------------------------------- def run(): runner = unittest.TextTestRunner() runner.run(test_suite_all()) #----------------------------------------------------------------------------- if __name__ == "__main__": run()