diff --git a/integrationtests/test_use_case_simple_presentation.py b/integrationtests/test_use_case_simple_presentation.py
index 642546619b0c9aa4eeae9ad33191b05b4b8ccb99..5f66e6fae7a77a315437f4a030110ded8d0ce867 100644
--- a/integrationtests/test_use_case_simple_presentation.py
+++ b/integrationtests/test_use_case_simple_presentation.py
@@ -58,7 +58,7 @@ def test_complete_crawler(clear_database, caplog):
 
     # test that a bad value for "remove_prefix" leads to runtime error
     caplog.set_level(logging.DEBUG, logger="caoscrawler.crawl")
-    assert 1 = crawler_main(
+    assert 1 == crawler_main(
         crawled_directory_path=os.path.join(DATADIR),
         cfood_file_name=os.path.join(DATADIR, "cfood.yml"),
         identifiables_definition_file=os.path.join(DATADIR, "identifiables.yml"),
diff --git a/unittests/test_tool.py b/unittests/test_tool.py
index a9b8a2ec723cf78b41b8f8f2675fe142cddec3ae..b88720f4da89dfa735e782a4d2e41ccc3b0f4d3c 100755
--- a/unittests/test_tool.py
+++ b/unittests/test_tool.py
@@ -995,8 +995,8 @@ def test_deprecated_prefix_option():
         crawler_main("./", rfp("scifolder_cfood.yml"), prefix="to/be/removed")
 
     # Check that crawler main terminates with an error
-    assert 1 = crawler_main("./", rfp("scifolder_cfood.yml"), prefix="to/be/removed",
-                            remove_prefix="to/be/removed")
+    assert 1 == crawler_main("./", rfp("scifolder_cfood.yml"), prefix="to/be/removed",
+                             remove_prefix="to/be/removed")
 
     with raises(ValueError) as ve: