Beispiel #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
Beispiel #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
Beispiel #3
0
def test_before_nearest_workday(day, expected):
    assert before_nearest_workday(day) == expected
Beispiel #4
0
def test_before_nearest_workday(day, expected):
    assert before_nearest_workday(day) == expected
Beispiel #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)
Beispiel #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)