Apply suggestions from code review
Co-authored-by: Chris Lenk <clenk@users.noreply.github.com>pull/1/head
parent
c2d360d223
commit
19196654c5
|
@ -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()
|
||||
|
||||
|
|
|
@ -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()
|
||||
|
||||
|
|
Loading…
Reference in New Issue