Lines Matching defs:test
10 from test import support
22 from test.support import import_helper
23 from test.support import threading_helper
24 from test.support.script_helper import assert_python_ok
622 """This is a test"""
624 f.attr = 'This is also a test'
637 self.assertEqual(wrapper.attr, 'This is also a test')
645 self.assertEqual(wrapper.__doc__, 'This is a test')
649 """This is a test"""
651 f.attr = 'This is also a test'
665 f.attr = 'This is a different test'
677 self.assertEqual(wrapper.attr, 'This is a different test')
717 """This is a test"""
719 f.attr = 'This is also a test'
731 self.assertEqual(wrapper.attr, 'This is also a test')
737 self.assertEqual(wrapper.__doc__, 'This is a test')
741 """This is a test"""
743 f.attr = 'This is also a test'
756 f.attr = 'This is a different test'
771 self.assertEqual(wrapper.attr, 'This is a different test')
1314 f.cache_clear() # test clearing
1333 # test size zero (which means "never-cache")
1349 # test size one
1365 # test size two
1492 # Regression test for issue #28653.
1701 def test():
1706 threads = [threading.Thread(target=test) for k in range(n)]
1723 def test(i, x):
1726 threads = [threading.Thread(target=test, args=(i, v))
1948 "Simple test"
1952 self.assertEqual(g.__doc__, "Simple test")
1974 # None of the examples in this test depend on haystack ordering.
2661 # to test the test itself is working as expected