File: test_import.py

package info (click to toggle)
python-mechanize 1%3A0.4.8%2Bpypi-5
  • links: PTS, VCS
  • area: main
  • in suites: bookworm
  • size: 1,612 kB
  • sloc: python: 16,644; makefile: 11
file content (15 lines) | stat: -rw-r--r-- 278 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
import unittest

import mechanize
from mechanize._testcase import TestCase


class ImportTests(TestCase):

    def test_import_all(self):
        for name in mechanize.__all__:
            exec("from mechanize import %s" % name)


if __name__ == "__main__":
    unittest.main()