<s> """<STR_LIT>""" <EOL> import unittest <EOL> from cloudcafe . compute . common . types import ComputeTaskStates <EOL> from cloudcafe . compute . servers_api . models . servers import Server <EOL> class ServerDomainTest ( object ) : <EOL> def test_server_disk_config ( self ) : <EOL> self . assertEqual ( self . server . disk_config , "<STR_LIT>" ) <EOL> def test_server_power_state ( self ) : <EOL> self . assertEqual ( self . server . power_state , <NUM_LIT:1> ) <EOL> def test_server_progress ( self ) : <EOL> self . assertEqual ( self . server . progress , <NUM_LIT:100> ) <EOL> def test_server_task_state ( self ) : <EOL> self . assertEqual ( self . server . task_state , ComputeTaskStates . NONE ) <EOL> def test_server_vm_state ( self ) : <EOL> self . assertEqual ( self . server . vm_state , "<STR_LIT>" ) <EOL> def test_server_id ( self ) : <EOL> self . assertEqual ( self . server . id , "<STR_LIT:5>" ) <EOL> def test_server_name ( self ) : <EOL> self . assertEqual ( self . server . name , "<STR_LIT>" ) <EOL> def test_tenant_id ( self ) : <EOL> self . assertEqual ( self . server . tenant_id , "<STR_LIT>" ) <EOL> def test_server_status ( self ) : <EOL> self . assertEqual ( self . server . status , "<STR_LIT>" ) <EOL> def test_server_updated_time ( self ) : <EOL> self . assertEqual ( self . server . updated , "<STR_LIT>" ) <EOL> def test_host_id ( self ) : <EOL> self . assertEqual ( <EOL> self . server . host_id , "<STR_LIT>" ) <EOL> def test_user_id ( self ) : <EOL> self . assertEqual ( self . server . user_id , "<STR_LIT>" ) <EOL> def test_server_created_time ( self ) : <EOL> self . assertEqual ( self . server . created , "<STR_LIT>" ) <EOL> def test_server_access_ips ( self ) : <EOL> self . assertEqual ( self . server . accessIPv4 , "<STR_LIT>" ) <EOL> self . assertEqual ( self . server . accessIPv6 , <EOL> "<STR_LIT>" ) <EOL> def test_server_addresses ( self ) : <EOL> self . assertEqual ( self . server . addresses . public . ipv4 , "<STR_LIT>" ) <EOL> self . assertEqual ( self . server . addresses . public . addresses [ <NUM_LIT:0> ] . version , <NUM_LIT:4> ) <EOL> self . assertEqual ( self . server . addresses . public . ipv6 , <EOL> "<STR_LIT>" ) <EOL> self . assertEqual ( self . server . addresses . public . addresses [ <NUM_LIT:1> ] . version , <NUM_LIT:6> ) <EOL> self . assertEqual ( self . server . addresses . private . ipv4 , "<STR_LIT>" ) <EOL> self . assertEqual ( <EOL> self . server . addresses . private . addresses [ <NUM_LIT:0> ] . version , <NUM_LIT:4> ) <EOL> def test_server_flavor ( self ) : <EOL> self . assertEqual ( self . server . flavor . id , "<STR_LIT:2>" ) <EOL> self . assertEqual ( <EOL> self . server . flavor . links . bookmark , <EOL> "<STR_LIT>" ) <EOL> def test_server_image ( self ) : <EOL> self . assertEqual ( self . server . image . id , "<STR_LIT:1>" ) <EOL> self . assertEqual ( <EOL> self . server . image . links . bookmark , <EOL> "<STR_LIT>" ) <EOL> def test_server_links ( self ) : <EOL> self . assertEqual ( <EOL> self . server . links . self , "<STR_LIT>" ) <EOL> self . assertEqual ( <EOL> self . server . links . bookmark , "<STR_LIT>" ) <EOL> def test_server_metadata ( self ) : <EOL> self . assertEqual ( self . server . metadata . get ( '<STR_LIT>' ) , "<STR_LIT>" ) <EOL> def test_server_keypair ( self ) : <EOL> self . assertEqual ( self . server . key_name , "<STR_LIT>" ) <EOL> def test_server_instance_name ( self ) : <EOL> self . assertEqual ( self . server . instance_name , '<STR_LIT>' ) <EOL> def test_hypervisor_hostname ( self ) : <EOL> self . assertEqual ( self . server . hypervisor_name , '<STR_LIT>' ) <EOL> def test_server_host ( self ) : <EOL> self . assertEqual ( self . server . host , '<STR_LIT>' ) <EOL> class ServerFromVolumeDomainTest ( object ) : <EOL> def test_server_image ( self ) : <EOL> self . assertIsNone ( self . server . image ) <EOL> class ServerXMLDomainTest ( unittest . TestCase , ServerDomainTest ) : <EOL> @ classmethod <EOL> def setUpClass ( cls ) : <EOL> docs_url = '<STR_LIT>' <EOL> ext = '<STR_LIT>' <EOL> cls . server_xml = """<STR_LIT>""" . format ( docs_url = docs_url , ext = ext ) <EOL> cls . server = Server . deserialize ( cls . server_xml , '<STR_LIT>' ) <EOL> class ServerJSONDomainTest ( unittest . TestCase , ServerDomainTest ) : <EOL> @ classmethod <EOL> def setUpClass ( cls ) : <EOL> cls . server_json = """<STR_LIT>""" <EOL> cls . server = Server . deserialize ( cls . server_json , '<STR_LIT>' ) <EOL> class ServerFromVolumeXMLDomainTest ( unittest . TestCase , <EOL> ServerFromVolumeDomainTest ) : <EOL> @ classmethod <EOL> def setUpClass ( cls ) : <EOL> docs_url = '<STR_LIT>' <EOL> ext = '<STR_LIT>' <EOL> cls . server_xml = """<STR_LIT>""" . format ( docs_url = docs_url , ext = ext ) <EOL> cls . server = Server . deserialize ( cls . server_xml , '<STR_LIT>' ) <EOL> class ServerFromVolumeJSONDomainTest ( unittest . TestCase , <EOL> ServerFromVolumeDomainTest ) : <EOL> @ classmethod <EOL> def setUpClass ( cls ) : <EOL> cls . server_json = """<STR_LIT>""" <EOL> cls . server = Server . deserialize ( cls . server_json , '<STR_LIT>' ) </s>
