<s> import unittest <EOL> import azure . mgmt . redis <EOL> from testutils . common_recordingtestcase import record <EOL> from tests . mgmt_testcase import HttpStatusCode , AzureMgmtTestCase <EOL> class MgmtRedisTest ( AzureMgmtTestCase ) : <EOL> def setUp ( self ) : <EOL> super ( MgmtRedisTest , self ) . setUp ( ) <EOL> self . redis_client = self . create_mgmt_client ( <EOL> azure . mgmt . redis . RedisManagementClientConfiguration , <EOL> azure . mgmt . redis . RedisManagementClient <EOL> ) <EOL> @ record <EOL> def test_redis ( self ) : <EOL> self . create_resource_group ( ) <EOL> account_name = self . get_resource_name ( '<STR_LIT>' ) <EOL> cache_name = '<STR_LIT>' <EOL> redis_cache = self . redis_client . redis . create_or_update ( <EOL> self . group_name , <EOL> cache_name , <EOL> azure . mgmt . redis . models . RedisCreateOrUpdateParameters ( <EOL> sku = azure . mgmt . redis . models . Sku ( name = '<STR_LIT>' , family = '<STR_LIT:C>' , capacity = '<STR_LIT:1>' ) , <EOL> location = "<STR_LIT>" <EOL> ) <EOL> ) <EOL> result = self . redis_client . redis . get ( <EOL> self . group_name , <EOL> cache_name , <EOL> ) <EOL> self . assertEquals ( result . name , cache_name ) <EOL> if __name__ == '<STR_LIT:__main__>' : <EOL> unittest . main ( ) </s>
