()
| 1065 | |
| 1066 | |
| 1067 | def test_host_repr() -> None: |
| 1068 | route = Host( |
| 1069 | "example.com", |
| 1070 | app=Router( |
| 1071 | [ |
| 1072 | Route("/", endpoint=homepage), |
| 1073 | ] |
| 1074 | ), |
| 1075 | ) |
| 1076 | # test for substring because repr(Router) returns unique object ID |
| 1077 | assert repr(route).startswith("Host(host='example.com', name='', app=") |
| 1078 | |
| 1079 | |
| 1080 | def test_host_named_repr() -> None: |