

def test_silent_page_not_an_integer_error(table):
    request = build_request('/')
    paginator = Fake('Paginator').expects('page').with_args(1)
    table = table.has_attr(paginator=paginator).expects('paginate').with_args(page='abc').raises(PageNotAnInteger)
    RequestConfig(request, paginate={
        'page': 'abc',
        'silent': True,
    }).configure(table)

dataset/ETHPy150Open bradleyayers/django-tables2/tests/test_config.py test_silent_page_not_an_integer_error/original