File: test_import.py

package info (click to toggle)
python-mechanize 1%3A0.2.5-3
  • links: PTS, VCS
  • area: main
  • in suites: buster, jessie, jessie-kfreebsd, stretch, wheezy
  • size: 2,056 kB
  • ctags: 3,377
  • sloc: python: 23,140; makefile: 4
file content (15 lines) | stat: -rw-r--r-- 277 bytes parent folder | download
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()