forked from pool/python-falcon
30 lines
836 B
Diff
30 lines
836 B
Diff
![]() |
--- 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
|
||
|
@@ -37,26 +37,6 @@
|
||
|
# 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
|
||
|
-
|
||
|
- if six.PY3:
|
||
|
- stream = io.StringIO()
|
||
|
- else:
|
||
|
- stream = io.BytesIO()
|
||
|
-
|
||
|
- old_stderr = sys.stderr
|
||
|
- sys.stderr = stream
|
||
|
-
|
||
|
- old_thing()
|
||
|
-
|
||
|
- sys.stderr = old_stderr
|
||
|
- self.assertIn(msg, stream.getvalue())
|
||
|
-
|
||
|
def test_http_now(self):
|
||
|
expected = datetime.utcnow()
|
||
|
actual = falcon.http_date_to_dt(falcon.http_now())
|