<s> """<STR_LIT>""" <EOL> from cloudroast . bare_metal . fixtures import BareMetalFixture <EOL> class CreateChassisTest ( BareMetalFixture ) : <EOL> @ classmethod <EOL> def setUpClass ( cls ) : <EOL> super ( CreateChassisTest , cls ) . setUpClass ( ) <EOL> cls . _create_chassis ( ) <EOL> def test_create_chassis_response_code ( self ) : <EOL> """<STR_LIT>""" <EOL> self . assertEqual ( self . create_chassis_resp . status_code , <NUM_LIT> ) <EOL> def test_created_chassis_properties ( self ) : <EOL> """<STR_LIT>""" <EOL> self . assertEqual ( self . chassis . description , self . chassis_description ) <EOL> self . assertEqual ( self . chassis . extra , self . chassis_extra ) <EOL> def test_new_chassis_in_list_of_chassis ( self ) : <EOL> """<STR_LIT>""" <EOL> existing_chassis = self . chassis_client . list_chassis ( ) . entity <EOL> chassis_uuids = [ chassis . uuid for chassis in existing_chassis ] <EOL> self . assertIn ( self . chassis . uuid , chassis_uuids ) <EOL> def test_new_chassis_in_detailed_list_of_chassis ( self ) : <EOL> """<STR_LIT>""" <EOL> resp = self . chassis_client . list_chassis_with_details ( ) <EOL> existing_chassis = resp . entity <EOL> chassis_uuids = [ chassis . uuid for chassis in existing_chassis ] <EOL> self . assertIn ( self . chassis . uuid , chassis_uuids ) <EOL> def test_get_chassis ( self ) : <EOL> """<STR_LIT>""" <EOL> resp = self . chassis_client . get_chassis ( self . chassis . uuid ) <EOL> self . assertEqual ( resp . status_code , <NUM_LIT:200> ) <EOL> chassis = resp . entity <EOL> self . assertEqual ( chassis . description , self . chassis_description ) <EOL> self . assertEqual ( chassis . extra , self . chassis_extra ) </s>
