'L{ftp.SystemFTPRealm.getHomeDirectory} treats the avatarId passed to it
as a username in the underlying platform and returns that account\'s home
directory.'

def test_getHomeDirectory(self):

    user = getpass.getuser()
    import pwd
    expected = pwd.getpwnam(user).pw_dir
    realm = ftp.SystemFTPRealm(self.mktemp())
    home = realm.getHomeDirectory(user)
    self.assertEqual(home, filepath.FilePath(expected))
