'Video control events should contain valid ID fields and a valid "currentTime" field.
This function asserts that those fields are present and have correct values.'

def assert_valid_control_event_at_time(self, video_event, time_in_seconds):

    current_time = json.loads(video_event['event'])['currentTime']
    self.assertAlmostEqual(current_time, time_in_seconds, delta=1)
