<s> import mock <EOL> from django . core . management import call_command <EOL> from django . core . management import CommandError <EOL> from django . test import TestCase <EOL> from horizon . management . commands import startdash <EOL> from horizon . management . commands import startpanel <EOL> class CommandsTestCase ( TestCase ) : <EOL> def test_startdash_usage_empty ( self ) : <EOL> self . assertRaises ( CommandError , call_command , '<STR_LIT>' ) <EOL> @ mock . patch . object ( startdash . Command , '<STR_LIT>' ) <EOL> def test_startdash_usage_correct ( self , handle ) : <EOL> call_command ( '<STR_LIT>' , '<STR_LIT>' ) <EOL> handle . assert_called_with ( dash_name = '<STR_LIT>' , <EOL> extensions = [ "<STR_LIT>" , "<STR_LIT>" , "<STR_LIT:html>" , "<STR_LIT>" , <EOL> "<STR_LIT>" ] , <EOL> files = [ ] , no_color = False , pythonpath = None , <EOL> settings = None , skip_checks = True , target = None , <EOL> template = None , traceback = False , verbosity = <NUM_LIT:1> ) <EOL> def test_startpanel_usage_empty ( self ) : <EOL> self . assertRaises ( CommandError , call_command , '<STR_LIT>' ) <EOL> @ mock . patch . object ( startpanel . Command , '<STR_LIT>' ) <EOL> def test_startpanel_usage_correct ( self , handle ) : <EOL> call_command ( '<STR_LIT>' , '<STR_LIT>' , '<STR_LIT>' ) <EOL> handle . assert_called_with ( panel_name = '<STR_LIT>' , dashboard = '<STR_LIT>' , <EOL> extensions = [ "<STR_LIT>" , "<STR_LIT>" , "<STR_LIT:html>" ] , <EOL> files = [ ] , no_color = False , pythonpath = None , <EOL> settings = None , skip_checks = True , target = None , <EOL> template = None , traceback = False , verbosity = <NUM_LIT:1> ) </s>
