<s> import unittest <EOL> import azure . mgmt . scheduler <EOL> from testutils . common_recordingtestcase import record <EOL> from tests . mgmt_testcase import HttpStatusCode , AzureMgmtTestCase <EOL> class MgmtSchedulerTest ( AzureMgmtTestCase ) : <EOL> def setUp ( self ) : <EOL> super ( MgmtSchedulerTest , self ) . setUp ( ) <EOL> self . scheduler_client = self . create_mgmt_client ( <EOL> azure . mgmt . scheduler . SchedulerManagementClientConfiguration , <EOL> azure . mgmt . scheduler . SchedulerManagementClient <EOL> ) <EOL> @ record <EOL> def test_scheduler ( self ) : <EOL> self . create_resource_group ( ) <EOL> account_name = self . get_resource_name ( '<STR_LIT>' ) <EOL> jobcollection_name = "<STR_LIT>" <EOL> self . scheduler_client . job_collections . create_or_update ( <EOL> self . group_name , <EOL> jobcollection_name , <EOL> azure . mgmt . scheduler . models . JobCollectionDefinition ( <EOL> location = "<STR_LIT>" , <EOL> properties = azure . mgmt . scheduler . models . JobCollectionProperties ( <EOL> sku = azure . mgmt . scheduler . models . Sku ( name = "<STR_LIT>" ) <EOL> ) <EOL> ) <EOL> ) <EOL> result = self . scheduler_client . job_collections . get ( <EOL> self . group_name , <EOL> jobcollection_name , <EOL> ) <EOL> self . assertEqual ( result . name , jobcollection_name ) <EOL> if __name__ == '<STR_LIT:__main__>' : <EOL> unittest . main ( ) </s>
