#NEWLINE# def test_run_testsWithoutLabel( self ) : #NEWLINE# #INDENT# "\n        Not passing in a label causes the targets to be ['.']\n        " #NEWLINE# dr = djangorunner . DjangoRunner ( ) #NEWLINE# dr . setup_test_environment = MagicMock ( ) #NEWLINE# dr . setup_databases = MagicMock ( ) #NEWLINE# dr . teardown_databases = MagicMock ( ) #NEWLINE# dr . teardown_test_environment = MagicMock ( ) #NEWLINE# saved_loadTargets = djangorunner . loadTargets #NEWLINE# djangorunner . loadTargets = MagicMock ( ) #NEWLINE# self . addCleanup ( setattr , djangorunner , 'loadTargets' , dr ) #NEWLINE# dr . run_tests ( ( ) , testing = True ) #NEWLINE# djangorunner . loadTargets . assert_called_with ( [ '.' ] ) #NEWLINE# self . assertIn ( 'No Tests Found' , self . stream . getvalue ( ) )