'Checks that ClientCrash object\'s fields are correctly filled in.'

def CheckCrash(self, crash, expected_session_id):

    self.assertTrue((crash is not None))
    self.assertEqual(crash.client_id, self.client_id)
    self.assertEqual(crash.session_id, expected_session_id)
    self.assertEqual(crash.client_info.client_name, 'GRR    Monitor')
    self.assertEqual(crash.crash_type, (('aff4:/flows/' + queues.FLOWS.Basename()) + ':CrashHandler'))
    self.assertEqual(crash.crash_message, 'Client    killed    during    transaction')
