<s> import unittest <EOL> import azure . mgmt . authorization <EOL> from testutils . common_recordingtestcase import record <EOL> from tests . mgmt_testcase import HttpStatusCode , AzureMgmtTestCase <EOL> class MgmtAuthorizationTest ( AzureMgmtTestCase ) : <EOL> def setUp ( self ) : <EOL> super ( MgmtAuthorizationTest , self ) . setUp ( ) <EOL> self . authorization_client = self . create_mgmt_client ( <EOL> azure . mgmt . authorization . AuthorizationManagementClientConfiguration , <EOL> azure . mgmt . authorization . AuthorizationManagementClient <EOL> ) <EOL> @ record <EOL> def test_authorization ( self ) : <EOL> self . create_resource_group ( ) <EOL> permissions = self . authorization_client . permissions . list_for_resource_group ( <EOL> self . group_name <EOL> ) <EOL> permissions = list ( permissions ) <EOL> self . assertEqual ( len ( permissions ) , <NUM_LIT:1> ) <EOL> self . assertEqual ( permissions [ <NUM_LIT:0> ] . actions [ <NUM_LIT:0> ] , '<STR_LIT:*>' ) <EOL> if __name__ == '<STR_LIT:__main__>' : <EOL> unittest . main ( ) </s>
