'put() should send all items that match a glob.'

@server()
def test_put_sends_all_files_with_glob(self):

    paths = ['foo1.txt', 'foo2.txt']
    glob = 'foo*.txt'
    remote_directory = '/'
    for path in paths:
        self.mkfile(path, 'foo!')
    with hide('everything'):
        retval = put(self.path(glob), remote_directory)
    eq_(sorted(retval), sorted([(remote_directory + path) for path in paths]))
