Commit ff19fd18 authored by Samuel GAIST's avatar Samuel GAIST
Browse files

[test][test_database] Code cleanup

parent ec6242b7
...@@ -46,10 +46,10 @@ def test_export(): ...@@ -46,10 +46,10 @@ def test_export():
name = "integers_db/1" name = "integers_db/1"
obj = Database(prefix, name) obj = Database(prefix, name)
assert obj.valid, "\n * %s" % "\n * ".join(obj.errors) nose.tools.assert_true(obj.valid, "\n * %s" % "\n * ".join(obj.errors))
obj.export(tmp_prefix) obj.export(tmp_prefix)
# load from tmp_prefix and validates # load from tmp_prefix and validates
exported = Database(tmp_prefix, name) exported = Database(tmp_prefix, name)
assert exported.valid, "\n * %s" % "\n * ".join(exported.errors) nose.tools.assert_true(exported.valid, "\n * %s" % "\n * ".join(exported.errors))
Supports Markdown
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