From 08bd88c16d2f5df58a0497e4ea434bc95a9bad6e Mon Sep 17 00:00:00 2001 From: Samuel Gaist <samuel.gaist@idiap.ch> Date: Thu, 14 Mar 2019 17:26:33 +0100 Subject: [PATCH] [test][test_format_array] Code cleanup --- beat/core/test/test_format_array.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/beat/core/test/test_format_array.py b/beat/core/test/test_format_array.py index f3f47028..960a04f3 100644 --- a/beat/core/test/test_format_array.py +++ b/beat/core/test/test_format_array.py @@ -43,5 +43,7 @@ from . import prefix def test_array_of_arrays_does_not_validate(): df = DataFormat(prefix, "user/array_of_array/1") # not allowed - assert df.valid is False - assert df.errors[0].find("is not valid under any of the given schemas") != -1 + nose.tools.assert_false(df.valid) + nose.tools.assert_not_equal( + df.errors[0].find("is not valid under any of the given schemas"), -1 + ) -- GitLab