def METHOD_NAME(self):
    self.ddbb = DDBB()
    self.ddbb.connect()
    self.ddbb.create_tables(add_default=True)
    self.main = Mock()
    self.main.ddbb = self.ddbb
    self.main.activitypool = ActivityService(pytrainer_main=self.main)
    self.main.profile.gpxdir = '/nonexistent'
    self.record = Record(SportService(self.ddbb), parent=self.main)
    time = 7426
    distance = 46.18
    speed = distance * 3600 / time
    time_hhmmss = [time // 3600, (time / 60) % 60, time % 60]
    self.summary = {}
    self.summary['rcd_gpxfile'] = u'/nonexistent'
    self.summary['rcd_sport'] = u"Run"
    self.summary['rcd_date'] = u'2016-07-24'
    self.summary['rcd_calories'] = 1462
    self.summary['rcd_comments'] = u'test comment'
    self.summary['rcd_title'] = u'test 1'
    self.summary['rcd_time'] = time_hhmmss
    self.summary['rcd_distance'] = "%0.2f" %distance
    self.summary['rcd_pace'] = "%d.%02d" % ((3600 / speed) / 60, (3600 / speed) % 60)
    self.summary['rcd_maxpace'] = "%d.%02d" %((3600 / 72) / 60, (3600 / 72)% 60)
    self.summary['rcd_average'] = speed
    self.summary['rcd_maxvel'] = 72
    self.summary['rcd_beats'] = 115.0
    self.summary['rcd_maxbeats'] = 120
    self.summary['rcd_upositive'] = 553.1
    self.summary['rcd_unegative'] = 564.1
    self.summary['date_time_local'] = u'2016-07-24 12:58:23+03:00'
    self.summary['date_time_utc'] = u'2016-07-24T09:58:23Z'
    self.laps = [{'distance': 46181.9,
                  'lap_number': 0,
                  'calories': 1462,
                  'elapsed_time': u'7426.0',
                  'intensity': u'active',
                  'avg_hr': 136,
                  'max_hr': 173,
                  'laptrigger': u'manual'}]