Tests encoding a timezone
(self)
| 42 | assert self.encoder.default(current_time_utc) == current_time.isoformat() + 'Z' |
| 43 | |
| 44 | def test_encode_time(self): |
| 45 | """ |
| 46 | Tests encoding a timezone |
| 47 | """ |
| 48 | current_time = datetime.now().time() |
| 49 | assert self.encoder.default(current_time) == current_time.isoformat() |
| 50 | |
| 51 | def test_encode_time_tz(self): |
| 52 | """ |