#NEWLINE# def test_addTest_testPattern( self ) : #NEWLINE# #INDENT# '\n        Setting test_pattern will cause a test to be filtered.\n        ' #NEWLINE# mock_test = MagicMock ( ) #NEWLINE# mock_test . _testMethodName = 'test_hello' #NEWLINE# mock_test2 = MagicMock ( ) #NEWLINE# mock_test2 . _testMethodName = 'test_goodbye' #NEWLINE# args = copy . deepcopy ( default_args ) #NEWLINE# args . test_pattern = '_good*' #NEWLINE# gts = GreenTestSuite ( args = args ) #NEWLINE# gts . addTest ( mock_test ) #NEWLINE# self . assertEqual ( gts . _tests , [ ] ) #NEWLINE# gts . addTest ( mock_test2 ) #NEWLINE# self . assertEqual ( args . _tests , [ mock_test2 ] )