diff --git a/tests/test_rotation_scan.py b/tests/test_rotation_scan.py
index 0025d96cadbbea23c3d3511928cf126d9665de53..b9fea8f22b5c1f781fced225c0194bd2b543573f 100644
--- a/tests/test_rotation_scan.py
+++ b/tests/test_rotation_scan.py
@@ -49,7 +49,7 @@ def test_calc_angle(test_input1, test_input2, expected):
 def test_detect_enough_cornermarkers(name, datadir):
     bin_im = generate_binary_image(name, datadir)
     keypoints = scans.find_corner_marker_keypoints(bin_im)
-    assert(len(keypoints) >= 2 & len(keypoints) <= 4)
+    assert(len(keypoints) >= 2 and len(keypoints) <= 4)
 
 
 # Tests whether the detected keypoints are actually corner markers.