Passing the result of reverse_lazy is resolved to a real URL string.
(self)
| 73 | resolve_url(params_cbv) |
| 74 | |
| 75 | def test_lazy_reverse(self): |
| 76 | """ |
| 77 | Passing the result of reverse_lazy is resolved to a real URL |
| 78 | string. |
| 79 | """ |
| 80 | resolved_url = resolve_url(reverse_lazy("some-view")) |
| 81 | self.assertIsInstance(resolved_url, str) |
| 82 | self.assertEqual("/some-url/", resolved_url) |
| 83 | |
| 84 | def test_valid_view_name(self): |
| 85 | """ |
nothing calls this directly
no test coverage detected