Skip to content

Update CIQ extension to use mixbox. Fix #260. #265

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Jun 29, 2015
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion cybox/bindings/extensions/location/ciq_address_3_0.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,9 @@
# See LICENSE.txt for complete terms.

import sys
from cybox.bindings import *

from mixbox.binding_utils import *

import cybox.bindings.cybox_common as cybox_common

XML_NS = "http://cybox.mitre.org/extensions/Address#CIQAddress3.0-1"
Expand Down
Empty file.
Empty file.
26 changes: 26 additions & 0 deletions cybox/test/extensions/location/ciq_test.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
# Copyright (c) 2015, The MITRE Corporation. All rights reserved.
# See LICENSE.txt for complete terms.

"""Tests for various encoding issues throughout the library"""

import unittest

from mixbox.vendor.six import StringIO

from cybox.bindings.extensions.location import ciq_address_3_0


class CIQAddressTests(unittest.TestCase):

def test_can_load_extension(self):
addr = ciq_address_3_0.CIQAddress3_0InstanceType()

# Really basic test to verify the extension works.
s = StringIO()
addr.export(s.write, 0)
xml = s.getvalue()
self.assertEqual(165, len(xml))


if __name__ == "__main__":
unittest.main()