2017-09-04 05:32:08 +00:00
|
|
|
--- falcon-1.2.0/tests/test_utils.py 2017-05-02 01:05:49.000000000 +0200
|
|
|
|
+++ falcon-1.2.0/tests/test_utils.py 2017-09-02 11:54:01.484271099 +0200
|
2017-10-05 14:41:51 +00:00
|
|
|
@@ -33,19 +33,6 @@
|
2017-09-04 05:32:08 +00:00
|
|
|
# below.
|
|
|
|
self.uris = _arbitrary_uris(count=100, length=32)
|
|
|
|
|
|
|
|
- def test_deprecated_decorator(self):
|
|
|
|
- msg = 'Please stop using this thing. It is going away.'
|
|
|
|
-
|
|
|
|
- @util.deprecated(msg)
|
|
|
|
- def old_thing():
|
|
|
|
- pass
|
|
|
|
-
|
2017-10-05 14:41:51 +00:00
|
|
|
- with pytest.warns(UserWarning) as rec:
|
|
|
|
- old_thing()
|
2017-09-04 05:32:08 +00:00
|
|
|
-
|
2017-10-05 14:41:51 +00:00
|
|
|
- warn = rec.pop()
|
|
|
|
- assert msg in str(warn.message)
|
2017-09-04 05:32:08 +00:00
|
|
|
-
|
|
|
|
def test_http_now(self):
|
|
|
|
expected = datetime.utcnow()
|
|
|
|
actual = falcon.http_date_to_dt(falcon.http_now())
|