Fix XBMC and NMA Notification tests

This commit is contained in:
mano3m
2012-07-24 22:49:49 +02:00
parent 897a7ea122
commit 108044948f
2 changed files with 12 additions and 5 deletions
@@ -21,8 +21,11 @@ class NotifyMyAndroid(Notification):
response = nma.push(self.default_title, self.event , message, self.conf('priority'), batch_mode = len(keys) > 1)
successful = 0
for key in keys:
if not response[str(key)]['code'] == u'200':
log.error('Could not send notification to NotifyMyAndroid (%s). %s', (key, response[key]['message']))
else:
successful += 1
return response
return successful == len(keys)