Commits

Anonymous committed 79a841c Merge

Merge HTTPRequest baby step with head.

  • Participants
  • Parent commits ea5bd86, 6a0f1ad

Comments (0)

Files changed (1)

cheroot/test/test_request.py

+from cheroot import server
+
+
+class StubServer:
+    def __init__(self, ssl_adapter=None):
+        self.ssl_adapter = ssl_adapter
+
+def test_HTTPRequest_is_instantiable():
+    request = server.HTTPRequest(StubServer(), None)
+    actual = request.__class__
+    expected = server.HTTPRequest
+    assert actual is expected, actual
+
+def test_HTTPRequest_is_instantiable_as_SSL():
+    request = server.HTTPRequest(StubServer(True), None)
+    actual = request.scheme
+    expected = "https"
+    assert actual == expected, actual
+