<s> """<STR_LIT>""" <EOL> from cafe . drivers . unittest . decorators import tags <EOL> from cloudroast . images . fixtures import ImagesFixture <EOL> class TestDeleteImageMember ( ImagesFixture ) : <EOL> @ classmethod <EOL> def setUpClass ( cls ) : <EOL> super ( TestDeleteImageMember , cls ) . setUpClass ( ) <EOL> cls . image = cls . images_behavior . create_image_via_task ( ) <EOL> @ tags ( type = '<STR_LIT>' ) <EOL> def test_delete_image_member ( self ) : <EOL> """<STR_LIT>""" <EOL> member_id = self . alt_tenant_id <EOL> image = self . image <EOL> response = self . images_client . add_member ( image . id_ , member_id ) <EOL> self . assertEqual ( response . status_code , <NUM_LIT:200> ) <EOL> response = self . images_client . list_members ( image . id_ ) <EOL> self . assertEqual ( response . status_code , <NUM_LIT:200> ) <EOL> members = response . entity <EOL> self . assertEqual ( len ( members ) , <NUM_LIT:1> ) <EOL> member_errors = self . images_behavior . validate_image_member ( <EOL> image . id_ , members [ <NUM_LIT:0> ] , member_id ) <EOL> self . assertListEqual ( member_errors , [ ] ) <EOL> response = self . images_client . delete_member ( image . id_ , member_id ) <EOL> self . assertEqual ( response . status_code , <NUM_LIT> ) <EOL> response = self . images_client . list_members ( image . id_ ) <EOL> self . assertEqual ( response . status_code , <NUM_LIT:200> ) <EOL> members = response . entity <EOL> self . assertListEqual ( members , [ ] ) </s>
