File: test_nine.py

package info (click to toggle)
python-nine 1.1.0-2
  • links: PTS, VCS
  • area: main
  • in suites: bookworm
  • size: 144 kB
  • sloc: python: 238; makefile: 3
file content (22 lines) | stat: -rw-r--r-- 749 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
# -*- coding: utf-8 -*-

'''This module is donated to the public domain.'''

from __future__ import (absolute_import, division, print_function,
                        unicode_literals)
import unittest


class TestNine(unittest.TestCase):

    def test_import(self):
        from nine import (
            IS_PYTHON2, str, basestring, native_str,
            integer_types, class_types, range, range_list, reraise,
            iterkeys, itervalues, iteritems, map, zip, filter, input,
            implements_iterator, implements_to_string, implements_repr, nine,
            nimport, _moved)
        for key in _moved:
            if key == 'tkinter':
                continue  # travis does not have tk installed :p
            assert nimport(key)