From 44b3cbaedc3f89dc2c6430e9db0629a7d62a1faf Mon Sep 17 00:00:00 2001 From: Pavel Tisnovsky Date: Thu, 21 Mar 2019 08:30:09 +0100 Subject: [PATCH] Check for class name --- tests/test_utils.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/test_utils.py b/tests/test_utils.py index c2c87c7..ebe939f 100644 --- a/tests/test_utils.py +++ b/tests/test_utils.py @@ -344,5 +344,5 @@ def test_get_parser_from_ecosystem(): """Test the function get_parser_from_ecosystem().""" assert get_parser_from_ecosystem(None) is None assert get_parser_from_ecosystem("unknown") is None - assert get_parser_from_ecosystem("maven") == MavenParser - assert get_parser_from_ecosystem("npm") == NodeParser + assert get_parser_from_ecosystem("maven").__name__ == MavenParser.__name__ + assert get_parser_from_ecosystem("npm").__name__ == NodeParser.__name__