Skip to content

Commit 23594c1

Browse files
committed
#326 Fixed the test
Signed-off-by: Chin Yeung Li <[email protected]>
1 parent 8a81fe6 commit 23594c1

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

tests/test_model.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -568,9 +568,8 @@ def test_About_invalid_boolean_value(self):
568568
test_file = get_test_loc('parse/invalid_boolean.about')
569569
a = model.About(test_file)
570570
result = a.errors
571-
expected = [
572-
Error(ERROR, "Field modified: Invalid flag value: 'blah' is not one of: false, no, n, y, yes, true")]
573-
assert expected == result
571+
expected_msg = "Field modified: Invalid flag value: 'blah'"
572+
assert expected_msg in a.errors[0].message
574573

575574
def test_About_contains_about_file_path(self):
576575
test_file = get_test_loc('parse/complete/about.ABOUT')

0 commit comments

Comments
 (0)