Passing a model to resolve_url() results in get_absolute_url() being called on that model instance.
(self)
| 35 | self.assertEqual(url, resolve_url(url)) |
| 36 | |
| 37 | def test_model(self): |
| 38 | """ |
| 39 | Passing a model to resolve_url() results in get_absolute_url() being |
| 40 | called on that model instance. |
| 41 | """ |
| 42 | m = UnimportantThing(importance=1) |
| 43 | self.assertEqual(m.get_absolute_url(), resolve_url(m)) |
| 44 | |
| 45 | def test_view_function(self): |
| 46 | """ |
nothing calls this directly
no test coverage detected