def METHOD_NAME(self):
    # this method creates url with content_type id
    content_type = ContentType.objects.create(name=self.VALID_NAME)
    assert content_type.get_absolute_url() == (
        "/api/v1/content_types/{content_type_id}/"
    ).format(content_type_id=content_type.id)