mirror of
https://github.com/tahoe-lafs/tahoe-lafs.git
synced 2025-02-01 08:48:01 +00:00
look for correct error-string
This commit is contained in:
parent
4c3d0ea6cc
commit
8965c77d63
@ -60,8 +60,7 @@ class BackupDB(unittest.TestCase):
|
||||
bdb = backupdb.get_backupdb(where, stderr_f)
|
||||
self.failUnlessEqual(bdb, None)
|
||||
stderr = stderr_f.getvalue()
|
||||
self.failUnlessIn("Unable to create/open backupdb file %s" % (where,), stderr)
|
||||
self.failUnlessIn("unable to open database file", stderr)
|
||||
self.failUnlessIn("Could not open database", stderr)
|
||||
|
||||
|
||||
def writeto(self, filename, data):
|
||||
|
@ -159,7 +159,7 @@ class NoDefault(unittest.TestCase):
|
||||
yield create_client(self.basedir)
|
||||
self.assertEquals(
|
||||
str(ctx.exception),
|
||||
"string indices must be integers",
|
||||
"string index must be an integer, not str",
|
||||
)
|
||||
|
||||
@defer.inlineCallbacks
|
||||
|
Loading…
x
Reference in New Issue
Block a user