-
Notifications
You must be signed in to change notification settings - Fork 42
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
4 changed files
with
29 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Empty file.
Empty file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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() |