'Tests getting image members including the deleted member'

def test_image_member_find_include_deleted(self):

    values = dict(image_id=UUID2, member='pattieblack')
    member = self.client.image_member_create(values=values)
    memb_list = self.client.image_member_find(member='pattieblack')
    memb_list2 = self.client.image_member_find(member='pattieblack', include_deleted=True)
    self.assertEqual(1, len(memb_list))
    self.assertEqual(1, len(memb_list2))
    self.client.image_member_delete(memb_id=member['id'])
    memb_list = self.client.image_member_find(member='pattieblack')
    memb_list2 = self.client.image_member_find(member='pattieblack', include_deleted=True)
    self.assertEqual(0, len(memb_list))
    self.assertEqual(1, len(memb_list2))
    member = self.client.image_member_create(values=values)
    memb_list = self.client.image_member_find(member='pattieblack')
    memb_list2 = self.client.image_member_find(member='pattieblack', include_deleted=True)
    self.assertEqual(1, len(memb_list))
    self.assertEqual(2, len(memb_list2))
