()
| 141 | |
| 142 | |
| 143 | def test_hour(): |
| 144 | f = Formatter() |
| 145 | d = pendulum.datetime(2016, 8, 28, 7) |
| 146 | assert f.format(d, "H") == "7" |
| 147 | assert f.format(d, "HH") == "07" |
| 148 | |
| 149 | d = pendulum.datetime(2016, 8, 28, 0) |
| 150 | assert f.format(d, "h") == "12" |
| 151 | assert f.format(d, "hh") == "12" |
| 152 | |
| 153 | |
| 154 | def test_minute(): |