#NEWLINE# @ skipIf ( ( DJANGO_VERSION >= ( 1 , 10 ) ) , 'only applies to Django < 1.10' ) #NEWLINE# def test_deprecated_option_list_command( self ) : #NEWLINE# #INDENT# '\n        Verify that the configuration option is correctly added to any\n        management commands which are still relying on option_list to\n        add their own custom arguments\n\n        Specific test for a pattern which was deprecated in Django 1.8\n        and which will become completely unsupported in Django 1.10.\n        https://docs.djangoproject.com/en/1.8/howto/custom-management-commands/#custom-commands-options\n        ' #NEWLINE# proc = subprocess . Popen ( [ 'django-cadmin' , 'old_optparse_command' , '--help' ] , stdout = subprocess . PIPE ) #NEWLINE# output = proc . communicate ( ) [ 0 ] . decode ( 'utf-8' ) #NEWLINE# self . assertIn ( '--configuration' , output ) #NEWLINE# self . assertIn ( '--arg1' , output )