()
| 1123 | |
| 1124 | |
| 1125 | def test_host_repr() -> None: |
| 1126 | route = Host( |
| 1127 | "example.com", |
| 1128 | app=Router( |
| 1129 | [ |
| 1130 | Route("/", endpoint=homepage), |
| 1131 | ] |
| 1132 | ), |
| 1133 | ) |
| 1134 | # test for substring because repr(Router) returns unique object ID |
| 1135 | assert repr(route).startswith("Host(host='example.com', name='', app=") |
| 1136 | |
| 1137 | |
| 1138 | def test_host_named_repr() -> None: |