Update test_datastore_taxii.py

return the right bundle...
master
Emmanuelle Vargas-Gonzalez 2018-11-29 18:45:34 -05:00 committed by GitHub
parent c62b9e92e7
commit f76de87f59
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions

View File

@ -40,7 +40,7 @@ class MockTAXIICollectionEndpoint(Collection):
[],
)
if objs:
return stix2.v21.Bundle(objects=objs)
return stix2.v20.Bundle(objects=objs)
else:
resp = Response()
resp.status_code = 404
@ -63,7 +63,7 @@ class MockTAXIICollectionEndpoint(Collection):
else:
filtered_objects = []
if filtered_objects:
return stix2.v21.Bundle(objects=filtered_objects)
return stix2.v20.Bundle(objects=filtered_objects)
else:
resp = Response()
resp.status_code = 404