Commit 3c358e74 authored by Samuel GAIST's avatar Samuel GAIST
Browse files

[test][format_extends] Code cleanup

parent af761d30
......@@ -46,9 +46,9 @@ from . import prefix
def test_invalid():
df = DataFormat(prefix, "user/extended_unknown/1") # not allowed
assert df.valid is False
assert df.errors[0].find("referred dataformat") != -1
assert df.errors[0].find("user/unknown/1") != -1
nose.tools.assert_false(df.valid)
nose.tools.assert_not_equal(df.errors[0].find("referred dataformat"), -1)
nose.tools.assert_not_equal(df.errors[0].find("user/unknown/1"), -1)
# ----------------------------------------------------------
......@@ -56,5 +56,7 @@ def test_invalid():
def test_name_clash():
df = DataFormat(prefix, "user/extended_name_clash/1") # not allowed
assert df.valid is False
assert df.errors[0].find("clashes with an attribute with the same") != -1
nose.tools.assert_false(df.valid)
nose.tools.assert_not_equal(
df.errors[0].find("clashes with an attribute with the same"), -1
)
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