From d6143439101a7add40aa7253ac9eec3aa2a225fe Mon Sep 17 00:00:00 2001 From: Emmanuelle Vargas-Gonzalez Date: Wed, 17 Oct 2018 07:56:10 -0400 Subject: [PATCH] Rename tests with duplicate name. --- stix2/test/v21/test_location.py | 12 ++++++------ stix2/v21/observables.py | 4 ++-- 2 files changed, 8 insertions(+), 8 deletions(-) diff --git a/stix2/test/v21/test_location.py b/stix2/test/v21/test_location.py index 526bbc6..62fd9e0 100644 --- a/stix2/test/v21/test_location.py +++ b/stix2/test/v21/test_location.py @@ -209,7 +209,7 @@ def test_location_negative_precision(data): "latitude": 18.468842, "precision": 5.0, }, - "(longitude, precision) are not met." + "(longitude, precision) are not met.", ), ( { @@ -221,11 +221,11 @@ def test_location_negative_precision(data): "longitude": 160.7, "precision": 5.0, }, - "(latitude, precision) are not met." + "(latitude, precision) are not met.", ), ], ) -def test_location_precision_dependency_missing(data, msg): +def test_location_latitude_dependency_missing(data, msg): with pytest.raises(stix2.exceptions.DependentPropertiesError) as excinfo: stix2.parse(data) @@ -243,7 +243,7 @@ def test_location_precision_dependency_missing(data, msg): "modified": "2016-04-06T20:03:00.000Z", "latitude": 18.468842, }, - "(longitude, latitude) are not met." + "(longitude, latitude) are not met.", ), ( { @@ -254,11 +254,11 @@ def test_location_precision_dependency_missing(data, msg): "modified": "2016-04-06T20:03:00.000Z", "longitude": 160.7, }, - "(latitude, longitude) are not met." + "(latitude, longitude) are not met.", ), ], ) -def test_location_precision_dependency_missing(data, msg): +def test_location_lat_or_lon_dependency_missing(data, msg): with pytest.raises(stix2.exceptions.DependentPropertiesError) as excinfo: stix2.parse(data) diff --git a/stix2/v21/observables.py b/stix2/v21/observables.py index 3b132d7..1b2251d 100644 --- a/stix2/v21/observables.py +++ b/stix2/v21/observables.py @@ -566,8 +566,8 @@ class WindowsProcessExt(_Extension): "medium", "high", "system", - ]) - ) + ]), + ), ])