(self)
| 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 |