diff --git a/tests/rules/test_python_command.py b/tests/rules/test_python_command.py
index 804b9b6f..2247839f 100644
--- a/tests/rules/test_python_command.py
+++ b/tests/rules/test_python_command.py
@@ -1,5 +1,5 @@
 from thefuck.main import Command
-from thefuck.rules.sudo import match, get_new_command
+from thefuck.rules.python_command import match, get_new_command
 
 def test_match():
     assert match(Command('', '', 'Permission denied'), None)