def test_before_nearest_workday(self): assert before_nearest_workday(self.sa) == self.th assert before_nearest_workday(self.su) == self.fr assert before_nearest_workday(self.tu) == self.mo
def test_before_nearest_workday(self): assert before_nearest_workday(self.sa) == self.th assert before_nearest_workday(self.su) == self.fr assert before_nearest_workday(self.tu) == self.mo
def test_before_nearest_workday(day, expected): assert before_nearest_workday(day) == expected
def test_before_nearest_workday(day, expected): assert before_nearest_workday(day) == expected
def test_before_nearest_workday(self): self.assertEqual(before_nearest_workday(self.sa), self.th) self.assertEqual(before_nearest_workday(self.su), self.fr) self.assertEqual(before_nearest_workday(self.tu), self.mo)
def test_before_nearest_workday(self): self.assertEqual(before_nearest_workday(self.sa), self.th) self.assertEqual(before_nearest_workday(self.su), self.fr) self.assertEqual(before_nearest_workday(self.tu), self.mo)