<s> import testtools <EOL> from openstack . identity . v2 import role <EOL> IDENTIFIER = '<STR_LIT>' <EOL> EXAMPLE = { <EOL> '<STR_LIT>' : '<STR_LIT:True>' , <EOL> '<STR_LIT:description>' : '<STR_LIT:1>' , <EOL> '<STR_LIT:id>' : IDENTIFIER , <EOL> '<STR_LIT:name>' : '<STR_LIT:3>' , <EOL> } <EOL> class TestRole ( testtools . TestCase ) : <EOL> def test_basic ( self ) : <EOL> sot = role . Role ( ) <EOL> self . assertEqual ( '<STR_LIT>' , 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 . assertTrue ( sot . allow_create ) <EOL> self . assertTrue ( sot . allow_retrieve ) <EOL> self . assertTrue ( sot . allow_update ) <EOL> self . assertTrue ( sot . allow_delete ) <EOL> self . assertTrue ( sot . allow_list ) <EOL> def test_make_it ( self ) : <EOL> sot = role . Role ( EXAMPLE ) <EOL> self . assertTrue ( sot . enabled ) <EOL> self . assertEqual ( EXAMPLE [ '<STR_LIT:description>' ] , sot . description ) <EOL> self . assertEqual ( EXAMPLE [ '<STR_LIT:id>' ] , sot . id ) <EOL> self . assertEqual ( EXAMPLE [ '<STR_LIT:name>' ] , sot . name ) <EOL> self . assertTrue ( sot . is_enabled ) </s>
