Commit 99757b29 authored by Samuel GAIST's avatar Samuel GAIST
Browse files

[test][invalid_database] Code cleanup

parent fa070417
......@@ -46,7 +46,7 @@ logger = logging.getLogger(__name__)
def doit(filename, error_msg):
database = Database(prefix, filename)
assert database.errors
nose.tools.assert_true(database.errors)
logger.error(error_msg)
found = False
......@@ -56,9 +56,12 @@ def doit(filename, error_msg):
found = True
break
assert found, (
"cannot find message `%s' on error list (%s) from loading database file `%s'"
% (error_msg, database.errors, filename)
nose.tools.assert_true(
found,
(
"cannot find message `%s' on error list (%s) from loading database file `%s'"
% (error_msg, database.errors, filename)
),
)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment