<s> from solumclient . openstack . common . apiclient import fake_client <EOL> from solumclient . tests import base <EOL> from solumclient . v1 import client as sclient <EOL> from solumclient . v1 import platform <EOL> fixtures = { <EOL> '<STR_LIT>' : { <EOL> '<STR_LIT:GET>' : ( <EOL> { } , <EOL> { <EOL> '<STR_LIT>' : '<STR_LIT>' , <EOL> '<STR_LIT:name>' : '<STR_LIT>' , <EOL> '<STR_LIT:type>' : '<STR_LIT>' , <EOL> '<STR_LIT>' : [ '<STR_LIT>' ] , <EOL> '<STR_LIT>' : '<STR_LIT>' , <EOL> '<STR_LIT>' : '<STR_LIT>' , <EOL> '<STR_LIT:description>' : '<STR_LIT>' , <EOL> '<STR_LIT>' : '<STR_LIT>' , <EOL> '<STR_LIT>' : '<STR_LIT>' , <EOL> '<STR_LIT>' : '<STR_LIT>' , <EOL> '<STR_LIT>' : '<STR_LIT>' , <EOL> '<STR_LIT>' : '<STR_LIT>' <EOL> } <EOL> ) , <EOL> } <EOL> } <EOL> class PlatformManagerTest ( base . TestCase ) : <EOL> def setUp ( self ) : <EOL> super ( PlatformManagerTest , self ) . setUp ( ) <EOL> fake_http_client = fake_client . FakeHTTPClient ( fixtures = fixtures ) <EOL> api_client = sclient . Client ( fake_http_client ) <EOL> self . mgr = platform . PlatformManager ( api_client ) <EOL> def test_get ( self ) : <EOL> platform = self . mgr . get ( ) <EOL> self . assertIn ( '<STR_LIT>' , repr ( platform ) ) <EOL> self . assertEqual ( '<STR_LIT>' , platform . uri ) <EOL> self . assertEqual ( '<STR_LIT>' , platform . type ) <EOL> self . assertEqual ( '<STR_LIT>' , <EOL> platform . project_id ) <EOL> self . assertEqual ( '<STR_LIT>' , platform . user_id ) </s>
