<s> """<STR_LIT>""" <EOL> import mock <EOL> from orcoursetrion . cmd import execute <EOL> from orcoursetrion . tests . base import TestGithubBase <EOL> class TestGithubCommand ( TestGithubBase ) : <EOL> """<STR_LIT>""" <EOL> def test_cmd_create_export_repo ( self ) : <EOL> """<STR_LIT>""" <EOL> args = [ <EOL> '<STR_LIT>' , '<STR_LIT>' , <EOL> '<STR_LIT:-c>' , self . TEST_COURSE , <EOL> '<STR_LIT>' , self . TEST_TERM , <EOL> '<STR_LIT>' , self . TEST_DESCRIPTION , <EOL> ] <EOL> with mock . patch ( '<STR_LIT>' , args ) : <EOL> with mock . patch ( '<STR_LIT>' ) as mocked_actions : <EOL> execute ( ) <EOL> self . assertTrue ( mocked_actions . create_export_repo . called ) <EOL> mocked_actions . create_export_repo . assert_called_with ( <EOL> self . TEST_COURSE , self . TEST_TERM , self . TEST_DESCRIPTION <EOL> ) <EOL> def test_cmd_rerun_studio ( self ) : <EOL> """<STR_LIT>""" <EOL> args = [ <EOL> '<STR_LIT>' , '<STR_LIT>' , <EOL> '<STR_LIT:-c>' , self . TEST_COURSE , <EOL> '<STR_LIT>' , self . TEST_TERM , <EOL> '<STR_LIT>' , self . TEST_NEW_TERM , <EOL> ] <EOL> with mock . patch ( '<STR_LIT>' , args ) : <EOL> with mock . patch ( '<STR_LIT>' ) as mocked_actions : <EOL> execute ( ) <EOL> self . assertTrue ( mocked_actions . rerun_studio . called ) <EOL> mocked_actions . rerun_studio . assert_called_with ( <EOL> self . TEST_COURSE , <EOL> self . TEST_TERM , <EOL> self . TEST_NEW_TERM <EOL> ) <EOL> def test_cmd_release_studio ( self ) : <EOL> """<STR_LIT>""" <EOL> args = [ <EOL> '<STR_LIT>' , '<STR_LIT>' , <EOL> '<STR_LIT:-c>' , self . TEST_COURSE , <EOL> '<STR_LIT>' , self . TEST_TERM , <EOL> ] <EOL> with mock . patch ( '<STR_LIT>' , args ) : <EOL> with mock . patch ( '<STR_LIT>' ) as mocked_actions : <EOL> execute ( ) <EOL> self . assertTrue ( mocked_actions . release_studio . called ) <EOL> mocked_actions . release_studio . assert_called_with ( <EOL> self . TEST_COURSE , <EOL> self . TEST_TERM , <EOL> ) <EOL> def test_cmd_create_xml_repo ( self ) : <EOL> """<STR_LIT>""" <EOL> args = [ <EOL> '<STR_LIT>' , '<STR_LIT>' , <EOL> '<STR_LIT:-c>' , self . TEST_COURSE , <EOL> '<STR_LIT>' , self . TEST_TERM , <EOL> '<STR_LIT>' , self . TEST_DESCRIPTION , <EOL> '<STR_LIT>' , self . TEST_TEAM , <EOL> ] <EOL> with mock . patch ( '<STR_LIT>' , args ) : <EOL> with mock . patch ( '<STR_LIT>' ) as mocked_actions : <EOL> execute ( ) <EOL> self . assertTrue ( mocked_actions . create_xml_repo . called ) <EOL> mocked_actions . create_xml_repo . assert_called_with ( <EOL> self . TEST_COURSE , <EOL> self . TEST_TERM , <EOL> self . TEST_TEAM , <EOL> None , <EOL> self . TEST_DESCRIPTION <EOL> ) <EOL> args = [ <EOL> '<STR_LIT>' , '<STR_LIT>' , <EOL> '<STR_LIT:-c>' , self . TEST_COURSE , <EOL> '<STR_LIT>' , self . TEST_TERM , <EOL> '<STR_LIT>' , self . TEST_DESCRIPTION , <EOL> '<STR_LIT>' , '<STR_LIT>' , '<STR_LIT>' , <EOL> '<STR_LIT>' , self . TEST_TEAM , <EOL> ] <EOL> with mock . patch ( '<STR_LIT>' , args ) : <EOL> with mock . patch ( '<STR_LIT>' ) as mocked_actions : <EOL> execute ( ) <EOL> self . assertTrue ( mocked_actions . create_xml_repo . called ) <EOL> mocked_actions . create_xml_repo . assert_called_with ( <EOL> self . TEST_COURSE , <EOL> self . TEST_TERM , <EOL> self . TEST_TEAM , <EOL> [ '<STR_LIT>' , '<STR_LIT>' ] , <EOL> self . TEST_DESCRIPTION <EOL> ) <EOL> args = [ <EOL> '<STR_LIT>' , '<STR_LIT>' , <EOL> '<STR_LIT:-c>' , self . TEST_COURSE , <EOL> '<STR_LIT>' , self . TEST_TERM , <EOL> '<STR_LIT>' , self . TEST_DESCRIPTION , <EOL> '<STR_LIT>' , '<STR_LIT>' , '<STR_LIT>' , <EOL> ] <EOL> with mock . patch ( '<STR_LIT>' , args ) : <EOL> with mock . patch ( '<STR_LIT>' ) as mocked_actions : <EOL> execute ( ) <EOL> self . assertTrue ( mocked_actions . create_xml_repo . called ) <EOL> mocked_actions . create_xml_repo . assert_called_with ( <EOL> self . TEST_COURSE , <EOL> self . TEST_TERM , <EOL> None , <EOL> [ '<STR_LIT>' , '<STR_LIT>' ] , <EOL> self . TEST_DESCRIPTION <EOL> ) <EOL> def test_cmd_rerun_xml ( self ) : <EOL> """<STR_LIT>""" <EOL> args = [ <EOL> '<STR_LIT>' , '<STR_LIT>' , <EOL> '<STR_LIT:-c>' , self . TEST_COURSE , <EOL> '<STR_LIT>' , self . TEST_TERM , <EOL> ] <EOL> with mock . patch ( '<STR_LIT>' , args ) : <EOL> with mock . patch ( '<STR_LIT>' ) as mocked_actions : <EOL> execute ( ) <EOL> self . assertTrue ( mocked_actions . rerun_xml . called ) <EOL> mocked_actions . rerun_xml . assert_called_with ( <EOL> self . TEST_COURSE , <EOL> self . TEST_TERM , <EOL> ) <EOL> def test_cmd_release_xml ( self ) : <EOL> """<STR_LIT>""" <EOL> args = [ <EOL> '<STR_LIT>' , '<STR_LIT>' , <EOL> '<STR_LIT:-c>' , self . TEST_COURSE , <EOL> '<STR_LIT>' , self . TEST_TERM , <EOL> ] <EOL> with mock . patch ( '<STR_LIT>' , args ) : <EOL> with mock . patch ( '<STR_LIT>' ) as mocked_actions : <EOL> execute ( ) <EOL> self . assertTrue ( mocked_actions . release_xml . called ) <EOL> mocked_actions . release_xml . assert_called_with ( <EOL> self . TEST_COURSE , <EOL> self . TEST_TERM , <EOL> ) <EOL> def test_cmd_put_team ( self ) : <EOL> """<STR_LIT>""" <EOL> args = [ <EOL> '<STR_LIT>' , '<STR_LIT>' , <EOL> '<STR_LIT>' , self . ORG , <EOL> '<STR_LIT>' , self . TEST_TEAM , <EOL> ] <EOL> with mock . patch ( '<STR_LIT>' , args ) : <EOL> with mock . patch ( '<STR_LIT>' ) as mocked_actions : <EOL> execute ( ) <EOL> self . assertTrue ( mocked_actions . put_team . called ) <EOL> mocked_actions . put_team . assert_called_with ( <EOL> self . ORG , self . TEST_TEAM , False , None <EOL> ) <EOL> args = [ <EOL> '<STR_LIT>' , '<STR_LIT>' , <EOL> '<STR_LIT>' , self . ORG , <EOL> '<STR_LIT>' , <EOL> '<STR_LIT>' , self . TEST_TEAM , <EOL> '<STR_LIT>' , '<STR_LIT>' , '<STR_LIT>' , <EOL> ] <EOL> with mock . patch ( '<STR_LIT>' , args ) : <EOL> with mock . patch ( '<STR_LIT>' ) as mocked_actions : <EOL> execute ( ) <EOL> self . assertTrue ( mocked_actions . put_team . called ) <EOL> mocked_actions . put_team . assert_called_with ( <EOL> self . ORG , self . TEST_TEAM , True , [ '<STR_LIT>' , '<STR_LIT>' ] <EOL> ) </s>
