Example #1
0
 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
Example #2
0
 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
Example #3
0
def test_before_nearest_workday(day, expected):
    assert before_nearest_workday(day) == expected
Example #4
0
def test_before_nearest_workday(day, expected):
    assert before_nearest_workday(day) == expected
Example #5
0
 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)
Example #6
0
 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)