<s> import testtools <EOL> from openstack . compute import version <EOL> IDENTIFIER = '<STR_LIT>' <EOL> EXAMPLE = { <EOL> '<STR_LIT:id>' : IDENTIFIER , <EOL> '<STR_LIT>' : '<STR_LIT:2>' , <EOL> '<STR_LIT:status>' : '<STR_LIT:3>' , <EOL> '<STR_LIT>' : '<STR_LIT:4>' , <EOL> } <EOL> class TestVersion ( testtools . TestCase ) : <EOL> def test_basic ( self ) : <EOL> sot = version . Version ( ) <EOL> self . assertEqual ( '<STR_LIT:version>' , sot . resource_key ) <EOL> self . assertEqual ( '<STR_LIT>' , sot . resources_key ) <EOL> self . assertEqual ( '<STR_LIT:/>' , sot . base_path ) <EOL> self . assertEqual ( '<STR_LIT>' , sot . service . service_type ) <EOL> self . assertFalse ( sot . allow_create ) <EOL> self . assertFalse ( sot . allow_retrieve ) <EOL> self . assertFalse ( sot . allow_update ) <EOL> self . assertFalse ( sot . allow_delete ) <EOL> self . assertTrue ( sot . allow_list ) <EOL> def test_make_it ( self ) : <EOL> sot = version . Version ( EXAMPLE ) <EOL> self . assertEqual ( EXAMPLE [ '<STR_LIT:id>' ] , sot . id ) <EOL> self . assertEqual ( EXAMPLE [ '<STR_LIT>' ] , sot . links ) <EOL> self . assertEqual ( EXAMPLE [ '<STR_LIT:status>' ] , sot . status ) <EOL> self . assertEqual ( EXAMPLE [ '<STR_LIT>' ] , sot . updated ) </s>
