File tree Expand file tree Collapse file tree 7 files changed +12
-12
lines changed
Expand file tree Collapse file tree 7 files changed +12
-12
lines changed Original file line number Diff line number Diff line change @@ -49,7 +49,7 @@ Which outputs:
4949 xmlns : stix =" http://docs.oasis-open.org/cti/ns/stix/core-1"
5050 xmlns : stixCommon =" http://docs.oasis-open.org/cti/ns/stix/common-1"
5151 xmlns : stixVocabs =" http://docs.oasis-open.org/cti/ns/stix/vocabularies-1"
52- xmlns : xsi =" http://www.w3.org/2001/XMLSchema-instance" id =" example:Package-1" version =" 1.2" >
52+ xmlns : xsi =" http://www.w3.org/2001/XMLSchema-instance" id =" example:Package-1" version =" 1.2.1 " >
5353 <stix : Reports >
5454 <stix : Report timestamp =" 2016-07-15T15:27:43.847000+00:00" id =" example:Report-2" xsi : type =' report:ReportType' version =" 1.0" >
5555 <report : Header >
Original file line number Diff line number Diff line change @@ -32,7 +32,7 @@ Which outputs:
3232 xmlns : xs =" http://www.w3.org/2001/XMLSchema"
3333 xmlns : xsi =" http://www.w3.org/2001/XMLSchema-instance"
3434 xmlns : xlink =" http://www.w3.org/1999/xlink"
35- id =" myNS:Package-b2039368-9476-4a5b-8c1d-0ef5d1b37e06" version =" 1.2" />
35+ id =" myNS:Package-b2039368-9476-4a5b-8c1d-0ef5d1b37e06" version =" 1.2.1 " />
3636
3737 Success! The ``xmlns:myNS="http://MY-NAMESPACE.com" `` matches our ``NAMESPACE ``
3838dictionary and the ``id `` attribute includes the ``myNS `` namespace alias.
Original file line number Diff line number Diff line change @@ -134,4 +134,4 @@ def supported_stix_version():
134134 supports (i.e., can parse).
135135
136136 """
137- return ('1.1.1' , '1.2' , '1.2.1' )
137+ return ('1.2.1' , )
Original file line number Diff line number Diff line change 2929 xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
3030 xmlns:stix="http://docs.oasis-open.org/cti/ns/stix/core-1"
3131 xmlns:example="http://example.com/"
32- id="example:Indicator-ba1d406e-937c-414f-9231-6e1dbe64fe8b" version="1.2" timestamp="2014-05-08T09:00:00.000000Z">
32+ id="example:Indicator-ba1d406e-937c-414f-9231-6e1dbe64fe8b" version="1.2.1 " timestamp="2014-05-08T09:00:00.000000Z">
3333 <stix:STIX_Header>
3434 <stix:Title>{0}</stix:Title>
3535 </stix:STIX_Header>
Original file line number Diff line number Diff line change @@ -130,7 +130,7 @@ class PythonMAECInPackageTests(unittest.TestCase):
130130 http://docs.oasis-open.org/cti/ns/stix/vocabularies-1 http://docs.oasis-open.org/cti/stix/v1.2.1/csd01/xml-schemas/vocabularies.xsd
131131 http://docs.oasis-open.org/cti/ns/stix/core-1 http://docs.oasis-open.org/cti/stix/v1.2.1/csd01/xml-schemas/core.xsd"
132132 id="example:Package-2b8fb66f-b6b3-4d40-865a-33e4a5ee1246"
133- version="1.2"
133+ version="1.2.1 "
134134 >
135135 <stix:TTPs>
136136 <stix:TTP xsi:type="ttp:TTPType" id="example:ttp-7d9fe1f7-429d-077e-db51-92c70b8da45a">
@@ -167,7 +167,7 @@ class PythonMAECInPackageTests(unittest.TestCase):
167167 http://docs.oasis-open.org/cti/ns/stix/extensions/malware/maec-4.1-1 http://docs.oasis-open.org/cti/stix/v1.2.1/csd01/xml-schemas/extensions/malware/maec-4.1-malware.xsd
168168 http://maec.mitre.org/XMLSchema/maec-package-2 http://maec.mitre.org/language/version4.1/maec_package_schema.xsd"
169169 id="example:Package-2b8fb66f-b6b3-4d40-865a-33e4a5ee1246"
170- version="1.2"
170+ version="1.2.1 "
171171 >
172172 <stix:TTPs>
173173 <stix:TTP xsi:type="ttp:TTPType" id="example:ttp-7d9fe1f7-429d-077e-db51-92c70b8da45a">
Original file line number Diff line number Diff line change @@ -61,7 +61,7 @@ def test_duplicate_ns_prefix(self):
6161 xmlns:stixCommon="THISISGONNABEPROBLEM"
6262 xmlns:stix="http://docs.oasis-open.org/cti/ns/stix/core-1"
6363 xmlns:stixVocabs="http://docs.oasis-open.org/cti/ns/stix/vocabularies-1"
64- version="1.2"
64+ version="1.2.1 "
6565 timestamp="2015-04-09T14:22:25.620831+00:00">
6666 <stix:STIX_Header>
6767 <stix:Description>A unit test</stix:Description>
@@ -99,7 +99,7 @@ def test_parsed_namespaces(self):
9999 xmlns:stixVocabs="http://docs.oasis-open.org/cti/ns/stix/vocabularies-1"
100100 xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
101101 id="example:Package-e2454ee8-e59c-43ac-a085-46ae4516fd6e"
102- version="1.2"
102+ version="1.2.1 "
103103 timestamp="2015-04-09T14:22:25.620831+00:00"/>"""
104104 )
105105
@@ -114,4 +114,4 @@ def test_parsed_namespaces(self):
114114
115115
116116if __name__ == "__main__" :
117- unittest .main ()
117+ unittest .main ()
Original file line number Diff line number Diff line change @@ -13,7 +13,7 @@ class ParserTests(unittest.TestCase):
1313 def test_valid (self ):
1414 valid = """
1515 <stix:STIX_Package xmlns:stix="http://docs.oasis-open.org/cti/ns/stix/core-1"
16- version="1.2" id="example:Package-1">
16+ version="1.2.1 " id="example:Package-1">
1717 </stix:STIX_Package>
1818 """
1919
@@ -25,7 +25,7 @@ def test_valid(self):
2525 def test_wrong_root_element (self ):
2626 wrong_root = """
2727 <stix:NotAPackage xmlns:stix="http://docs.oasis-open.org/cti/ns/stix/core-1"
28- version="1.2" id="example:Package-1">
28+ version="1.2.1 " id="example:Package-1">
2929 </stix:NotAPackage>
3030 """
3131
@@ -37,7 +37,7 @@ def test_wrong_root_element(self):
3737 check_root = False )
3838
3939 self .assertEqual ("example:Package-1" , package .id_ )
40- self .assertEqual ("1.2" , package .version )
40+ self .assertEqual ("1.2.1 " , package .version )
4141
4242 def test_wrong_version (self ):
4343 wrong_version = """
You can’t perform that action at this time.
0 commit comments