'L{ftp.SystemFTPRealm.getHomeDirectory} raises L{UnauthorizedLogin} when
passed a username which has no corresponding home directory in the
system\'s accounts database.'

def test_noSuchUser(self):

    user = (random.choice(string.ascii_letters) + ''.join((random.choice((string.ascii_letters + string.digits)) for _ in range(4))))
    realm = ftp.SystemFTPRealm(self.mktemp())
    self.assertRaises(UnauthorizedLogin, realm.getHomeDirectory, user)
