def test_get_absolute_url_not_defined():
 class Table(tables.Table, ):
  first_name = tables.Column()
  last_name = tables.LinkColumn()
 table = Table([dict(first_name=u'Jan Pieter', last_name=u'Waagmeester')])
 with pytest.raises(TypeError):
  table.as_html(build_request())

def test_get_absolute_url_not_defined ( ) : class Table ( tables . Table , ) : first_name = tables . Column ( ) last_name = tables . LinkColumn ( ) table = Table ( [ dict ( first_name = u'Jan Pieter' , last_name = u'Waagmeester' ) ] ) with pytest . raises ( TypeError ) : table . as_html ( build_request ( ) )
the dict doesnt have a get_absolute_url() .