def test_passing_request_to_constructor():
 request = build_request('/?page=1&sort=abc')
 class SimpleTable(Table, ):
  abc = Column()
 table = SimpleTable([{'abc': 'bar'}, {'abc': 'rab'}], request=request)
 assert table.columns['abc'].is_ordered

def test_passing_request_to_constructor ( ) : request = build_request ( '/?page=1&sort=abc' ) class SimpleTable ( Table , ) : abc = Column ( ) table = SimpleTable ( [ { 'abc' : 'bar' } , { 'abc' : 'rab' } ] , request = request ) assert table . columns [ 'abc' ] . is_ordered
table constructor should call requestconfig if a request is passed .