fixes per code review

This commit is contained in:
fawce
2012-09-12 13:29:05 -04:00
parent 50de0f5e39
commit c45c44b5c8
2 changed files with 6 additions and 6 deletions
+5 -5
View File
@@ -46,8 +46,8 @@ class ExceptionTestCase(TestCase):
output, _ = drain_zipline(self, zipline)
self.assertEqual(
ctx.exception.message,
'integer division or modulo by zero'
ctx.exception.message,
'integer division or modulo by zero'
)
@@ -149,6 +149,6 @@ class ExceptionTestCase(TestCase):
output, _ = drain_zipline(self, zipline)
self.assertEqual(
ctx.exception.message,
'Too much time spent in handle_data call'
)
ctx.exception.message,
'Too much time spent in handle_data call'
)
+1 -1
View File
@@ -70,7 +70,7 @@ def drain_zipline(test, zipline):
for update in zipline:
msg_counter += 1
output.append(update)
if update.has_key('daily_perf'):
if 'daily_perf' in update:
transaction_count += \
len(update['daily_perf']['transactions'])