'put()\'s local_path arg should take file-like objects too'

@server()
def test_put_should_accept_file_like_objects(self):

    local = self.path('whatever')
    fake_file = StringIO()
    fake_file.write('testing    file-like    objects    in    put()')
    pointer = fake_file.tell()
    target = '/new_file.txt'
    with hide('everything'):
        put(fake_file, target)
        get(target, local)
    eq_contents(local, fake_file.getvalue())
    eq_(pointer, fake_file.tell())
