| 114 | |
| 115 | |
| 116 | def test_localized_day_of_week(): |
| 117 | f = Formatter() |
| 118 | d = pendulum.datetime(2016, 8, 28) |
| 119 | assert f.format(d, "e") == "0" |
| 120 | assert f.format(d, "e", locale="en-gb") == "6" |
| 121 | assert f.format(d.add(days=2), "e") == "2" |
| 122 | assert f.format(d.add(days=2), "e", locale="en-gb") == "1" |
| 123 | |
| 124 | assert f.format(d, "eo") == "1st" |
| 125 | assert f.format(d, "eo", locale="en-gb") == "7th" |
| 126 | assert f.format(d.add(days=2), "eo") == "3rd" |
| 127 | assert f.format(d.add(days=2), "eo", locale="en-gb") == "2nd" |
| 128 | |
| 129 | |
| 130 | def test_day_of_iso_week(): |