Skip to content

Commit

Permalink
Merge branch 'ciq'
Browse files Browse the repository at this point in the history
  • Loading branch information
gtback committed Jun 29, 2015
2 parents 7269367 + 681b69f commit 45271ea
Show file tree
Hide file tree
Showing 4 changed files with 29 additions and 1 deletion.
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()

0 comments on commit 45271ea

Please sign in to comment.