def assert_nack(self, nack, reply, reason):
    self.assertEqual(nack.payload['event_type'], 'nack')
    self.assertEqual(nack.payload['user_message_id'], reply['message_id'])
    self.assertEqual(nack.payload['nack_reason'], reason)
def assert_nack(self, nack, reply, reason):
    self.assertEqual(nack.payload['event_type'], 'nack')
    self.assertEqual(nack.payload['user_message_id'], reply['message_id'])
    self.assertEqual(nack.payload['nack_reason'], reason)