from twisted.conch.ssh import keys
from allmydata.frontends import auth
+from allmydata.util.fileutil import abspath_expanduser_unicode
+
DUMMY_KEY = keys.Key.fromString("""\
-----BEGIN RSA PRIVATE KEY-----
def setUp(self):
self.account_file = filepath.FilePath(self.mktemp())
self.account_file.setContent(DUMMY_ACCOUNTS)
- abspath = abspath_expanduser_unicode(self.account_file.path)
+ abspath = abspath_expanduser_unicode(unicode(self.account_file.path))
self.checker = auth.AccountFileChecker(None, abspath)
def test_unknown_user(self):