Skip to content
Snippets Groups Projects
Commit e8c5dc10 authored by Chris Lamb's avatar Chris Lamb :eyes:
Browse files

Move to assert_diff in test_openssh_pub_key.py

parent 73966620
No related branches found
No related tags found
No related merge requests found
......@@ -25,7 +25,7 @@ from diffoscope.config import Config
from diffoscope.comparators.openssh import PublicKeyFile
from diffoscope.comparators.missing_file import MissingFile
from ..utils.data import load_fixture, get_data
from ..utils.data import assert_diff, load_fixture
from ..utils.tools import skip_unless_tools_exist, skip_unless_tool_is_at_least
......@@ -56,8 +56,7 @@ def differences(opensshpubkey1, opensshpubkey2):
@skip_unless_tool_is_at_least("ssh-keygen", openssh_version, "6.9")
def test_diff(differences):
expected_diff = get_data("openssh_pub_key_expected_diff")
assert differences[0].unified_diff == expected_diff
assert_diff(differences[0], "openssh_pub_key_expected_diff")
@skip_unless_tools_exist("ssh-keygen")
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment