def assertActivitiesEqual(self, a, b):
        ''' compare activity records with more granular asserts '''
        if a == b:
            return
        else:
            self.assertEqual(a.StartTime, b.StartTime)
            self.assertEqual(a.EndTime, b.EndTime)
            self.assertEqual(a.Type, b.Type)
            self.assertEqual(a.Stats.Distance, b.Stats.Distance)
            self.assertEqual(a.Name, b.Name)
            self.assertLapsListsEqual(a.Laps, b.Laps)
 compare activity records with more granular asserts 
tapiriik/testing/testtools.py