Removed unicode things

travis
Hannah Ward 2016-11-19 15:38:11 +00:00
parent 060f94f565
commit 3389560fe9
No known key found for this signature in database
GPG Key ID: 6F3BAD60DE190290
5 changed files with 25 additions and 4 deletions

View File

@ -1,4 +1,4 @@
<?xml version="1.0" encoding="UTF-8"?> <?xml version="1.0" ?>
<stix:STIX_Package <stix:STIX_Package
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:stix="http://stix.mitre.org/stix-1" xmlns:stix="http://stix.mitre.org/stix-1"

View File

@ -1,4 +1,4 @@
<?xml version="1.0" encoding="UTF-8"?> <?xml version="1.0" ?>
<stix:STIX_Package <stix:STIX_Package
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:stix="http://stix.mitre.org/stix-1" xmlns:stix="http://stix.mitre.org/stix-1"

View File

@ -1,4 +1,4 @@
<?xml version="1.0" encoding="UTF-8"?> <?xml version="1.0" ?>
<stix:STIX_Package <stix:STIX_Package
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:stix="http://stix.mitre.org/stix-1" xmlns:stix="http://stix.mitre.org/stix-1"

View File

@ -0,0 +1,21 @@
#!/usr/bin/env python
import subprocess
import glob
def test_push():
for fname in glob.glob("*.xml"):
proc = subprocess.Popen([
"taxii-push",
"--path", "http://127.0.0.1:9000/services/inbox",
"-f", fname,
"--dest", "collection",
"--username", "travis",
"--password", "travis"
],
stdout=subprocess.PIPE,
stderr=subprocess.PIPE
)
out,err = proc.communicate()
assert("Content block successfully pushed" in err.decode("utf-8"))