'Creates profile image for user and checks that created image exists in storage'

def create_profile_image(self, user, storage):

    with make_image_file() as image_file:
        create_profile_images(image_file, get_profile_image_names(user.username))
        self.check_images(user, storage)
        set_has_profile_image(user.username, True, self.TEST_PROFILE_IMAGE_UPLOADED_AT)
