

def test_model(self):
    '\n        Tests that passing a model to ``resolve_url`` will result in\n        ``get_absolute_url`` being called on that model instance.\n        '
    m = UnimportantThing(importance=1)
    m.assertEqual(m.get_absolute_url(), resolve_url(m))

dataset/ETHPy150Open AppScale/appscale/AppServer/lib/django-1.5/tests/regressiontests/resolve_url/tests.py ResolveUrlTests.test_model/VarMisuse@21/80 `self`->`m`