summaryrefslogtreecommitdiff
path: root/tests/test_emitter.py
diff options
context:
space:
mode:
Diffstat (limited to 'tests/test_emitter.py')
-rw-r--r--tests/test_emitter.py11
1 files changed, 6 insertions, 5 deletions
diff --git a/tests/test_emitter.py b/tests/test_emitter.py
index 1ff0ecc..fed6953 100644
--- a/tests/test_emitter.py
+++ b/tests/test_emitter.py
@@ -1,5 +1,5 @@
-import test_appliance, sys
+import test_appliance, sys, StringIO
from yaml import *
@@ -7,11 +7,12 @@ class TestEmitterOnCanonical(test_appliance.TestAppliance):
def _testEmitterOnCanonical(self, test_name, canonical_filename):
events = list(iter(Parser(Scanner(Reader(file(canonical_filename, 'rb'))))))
- writer = sys.stdout
+ #writer = sys.stdout
+ writer = StringIO.StringIO()
emitter = Emitter(writer)
- print "-"*30
- print "ORIGINAL DATA:"
- print file(canonical_filename, 'rb').read()
+ #print "-"*30
+ #print "ORIGINAL DATA:"
+ #print file(canonical_filename, 'rb').read()
for event in events:
emitter.emit(event)