def test_build_query_params_adds_continue(): actual_qp = wmc._build_query_params( 'abc', 'def', {'continuetoken': 'next.jpg'}, default_query_params={'test': 'value'} ) assert actual_qp['continuetoken'] == 'next.jpg'
def test_build_query_params_leaves_other_keys(): actual_qp = wmc._build_query_params( 'abc', 'def', default_query_params={'test': 'value'} ) assert actual_qp['test'] == 'value'
def test_build_query_params_adds_start_and_end(): actual_qp = wmc._build_query_params( 'abc', 'def', default_query_params={} ) assert actual_qp['gaistart'] == 'abc' assert actual_qp['gaiend'] == 'def'