'A time slot without a time from or time to will return a delta of 0'

def test_get_time(self):

    timeslot2 = TaskTimeSlot(task=self.task, user=self.user.profile, time_from=self.time_from)
    timeslot3 = TaskTimeSlot(task=self.task, user=self.user.profile, time_to=self.time_to)
    self.assertEqual(timeslot2.get_time(), timedelta(0))
    self.assertEqual(timeslot3.get_time(), timedelta(0))
    self.assertEqual(self.timeslot.get_time(), self.total_time)
