Lines Matching defs:test
11 from test import support
12 from test.support import os_helper
286 # Allow test to work with a non-refcounted GC
492 def test():
495 test()
503 def test():
509 test()
526 test = Test()
527 test.method(1, 2)
528 self.assertEqual(test.a, 1)
529 self.assertEqual(test.b, 2)
530 self.assertEqual(test.c, None)
532 test = Test()
533 test.method('a', 'b', 'c')
534 self.assertEqual(test.a, 'a')
535 self.assertEqual(test.b, 'b')
536 self.assertEqual(test.c, 'c')
538 test = Test()
539 test.method(a=1, b=2)
540 self.assertEqual(test.a, 1)
541 self.assertEqual(test.b, 2)
585 def test():
588 test()
601 def test(x):
604 test('something')
609 test('something else')
776 # This test captures the current behavior of ExitStack so that we know
979 # Addresses a lack of test coverage discovered after checking in a