added tests for exception messages in datasources and transforms

This commit is contained in:
scottsanderson
2012-08-08 18:44:45 -04:00
parent 0267bc5073
commit c64175e2e5
3 changed files with 65 additions and 7 deletions
+25
View File
@@ -168,3 +168,28 @@ def create_monitor(allocator):
)
return mon
class ExceptionSource(object):
def __init__(self):
pass
def get_hash(self):
return "ExceptionSource"
def __iter__(self):
return self
def next(self):
5 / 0
class ExceptionTransform(object):
def __init__(self):
pass
def get_hash(self):
return "ExceptionTransform"
def update(self, event):
assert False, "An assertion message"