/usr/share/doc/python-mechanize/examples/test/test_import.py is in python-mechanize 1:0.2.5-3.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
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()
|