File: test_import.py

package info (click to toggle)
python-mechanize 1%3A0.4.10%2Bds-5
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 1,316 kB
  • sloc: python: 16,656; makefile: 11; sh: 4
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()