Skip to content

Commit

Permalink
Skip RHEL6 test for CIQ extension. Close #265.
Browse files Browse the repository at this point in the history
  • Loading branch information
gtback committed Jun 29, 2015
1 parent 45271ea commit 00c056e
Showing 1 changed file with 10 additions and 2 deletions.
12 changes: 10 additions & 2 deletions cybox/test/extensions/location/ciq_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,14 +5,22 @@

import unittest

from mixbox.binding_utils import etree_
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):
if etree_.LXML_VERSION < (2, 3, 0, 0):
# Older versions of LXML do not support `register_namespace` needed
# for CybOX extensions to work. This is only an issue during RHEL6
# tests, which also use Python 2.6, meaning that unittest.skipTest
# is not implemented. So we just 'return' here.
return
# self.skipTest("LXML >= 2.3 required to use extensions")

from cybox.bindings.extensions.location import ciq_address_3_0
addr = ciq_address_3_0.CIQAddress3_0InstanceType()

# Really basic test to verify the extension works.
Expand Down

0 comments on commit 00c056e

Please sign in to comment.