'L{ftp.FTPRealm} accepts an extra directory to its initializer and treats
the avatarId passed to L{ftp.FTPRealm.getHomeDirectory} as a single path
segment to construct a child of that directory.'

def test_getHomeDirectory(self):

    base = '/path/to/home'
    realm = ftp.FTPRealm(self.mktemp(), base)
    home = realm.getHomeDirectory('alice@example.com')
    self.assertEqual(filepath.FilePath(base).child('alice@example.com'), home)
