Commit e8c5dc10 authored by Chris Lamb's avatar Chris Lamb 👀
Browse files

Move to assert_diff in test_openssh_pub_key.py

parent 73966620
Loading
Loading
Loading
Loading
+2 −3
Original line number Diff line number Diff line
@@ -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")