Apply suggestions from code review

Co-authored-by: Chris Lenk <clenk@users.noreply.github.com>
pull/1/head
Emmanuelle Vargas-Gonzalez 2021-03-19 15:31:01 -04:00 committed by GitHub
parent c2d360d223
commit 19196654c5
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 4 additions and 4 deletions

View File

@ -114,7 +114,7 @@ def test_bundle_id_must_start_with_bundle():
assert str(excinfo.value) == "Invalid value for Bundle 'id': must start with 'bundle--'."
def test_create_bundle_fp_serialize_true(indicator, malware, relationship):
def test_create_bundle_fp_serialize_pretty(indicator, malware, relationship):
bundle = stix2.v20.Bundle(objects=[indicator, malware, relationship])
buffer = io.StringIO()
@ -125,7 +125,7 @@ def test_create_bundle_fp_serialize_true(indicator, malware, relationship):
assert buffer.getvalue() == EXPECTED_BUNDLE
def test_create_bundle_fp_serialize_false(indicator, malware, relationship):
def test_create_bundle_fp_serialize_nonpretty(indicator, malware, relationship):
bundle = stix2.v20.Bundle(objects=[indicator, malware, relationship])
buffer = io.StringIO()

View File

@ -124,7 +124,7 @@ def test_bundle_id_must_start_with_bundle():
assert str(excinfo.value) == "Invalid value for Bundle 'id': must start with 'bundle--'."
def test_create_bundle_fp_serialize_true(indicator, malware, relationship):
def test_create_bundle_fp_serialize_pretty(indicator, malware, relationship):
bundle = stix2.v21.Bundle(objects=[indicator, malware, relationship])
buffer = io.StringIO()
@ -135,7 +135,7 @@ def test_create_bundle_fp_serialize_true(indicator, malware, relationship):
assert buffer.getvalue() == EXPECTED_BUNDLE
def test_create_bundle_fp_serialize_false(indicator, malware, relationship):
def test_create_bundle_fp_serialize_nonpretty(indicator, malware, relationship):
bundle = stix2.v21.Bundle(objects=[indicator, malware, relationship])
buffer = io.StringIO()