

def test_passing_request_to_constructor():
    'Table constructor should call RequestConfig if a request is passed.'
    request = build_request('/?page=1&sort=abc')

    class SimpleTable(Table):
        abc = Column()
    table = SimpleTable([{
        'abc': 'bar',
    }, {
        'abc': 'rab',
    }], request=request)
    assert request.columns['abc'].is_ordered

dataset/ETHPy150Open bradleyayers/django-tables2/tests/test_config.py test_passing_request_to_constructor/VarMisuse@64/113 `table`->`request`