'Create a stream for deletion by an administrator.'

def set_up_stream_for_deletion(self, stream_name, invite_only=False, subscribed=True):

    user_profile = self.example_user('hamlet')
    email = user_profile.email
    self.login(email)
    stream = self.make_stream(stream_name, invite_only=invite_only)
    if subscribed:
        self.subscribe_to_stream(email, stream_name)
    do_change_is_admin(user_profile, True)
    return stream
