Ejemplo n.º 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
Ejemplo n.º 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
Ejemplo n.º 3
0
def test_before_nearest_workday(day, expected):
    assert before_nearest_workday(day) == expected
Ejemplo n.º 4
0
def test_before_nearest_workday(day, expected):
    assert before_nearest_workday(day) == expected
Ejemplo n.º 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)
Ejemplo n.º 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)