MCPcopy Create free account
hub / github.com/dateutil/dateutil / testWeekdayCallable

Method testWeekdayCallable

tests/test_rrule.py:4852–4861  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

4850 FR(0)
4851
4852 def testWeekdayCallable(self):
4853 # Calling a weekday instance generates a new weekday instance with the
4854 # value of n changed.
4855 from dateutil.rrule import weekday
4856 self.assertEqual(MO(1), weekday(0, 1))
4857
4858 # Calling a weekday instance with the identical n returns the original
4859 # object
4860 FR_3 = weekday(4, 3)
4861 self.assertIs(FR_3(3), FR_3)
4862
4863 def testWeekdayEquality(self):
4864 # Two weekday objects are not equal if they have different values for n

Callers

nothing calls this directly

Calls 1

weekdayClass · 0.90

Tested by

no test coverage detected