'Try to rename a directory.'

def test_rename(self):

    self.createDirectory('ned')
    d = self.shell.rename(('ned',), ('foo',))
    def cb(res):
        self.assertTrue(self.directoryExists('foo'))
        self.assertFalse(self.directoryExists('ned'))
    return d.addCallback(cb)
