(self)
| 14 | self.cache = RedisCache(self.conn) |
| 15 | |
| 16 | def test_set_expiration_datetime(self): |
| 17 | self.cache.set("foo", "bar", expires=datetime(2014, 2, 2)) |
| 18 | assert self.conn.setex.called |
| 19 | |
| 20 | def test_set_expiration_datetime_aware(self): |
| 21 | self.cache.set("foo", "bar", expires=datetime(2014, 2, 2, tzinfo=timezone.utc)) |