Apparently output goes to stderr?

travis
Hannah Ward 2016-11-18 16:10:28 +00:00
parent b41109dd9e
commit 060f94f565
No known key found for this signature in database
GPG Key ID: 6F3BAD60DE190290
1 changed files with 0 additions and 22 deletions

View File

@ -1,22 +0,0 @@
#!/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()
print(out)
assert("Content block successfully pushed" in out.decode("utf-8"))