def test_1(self): """ Verify we handle when $PAGER looks like 'less -z 40' """ pager = wmw.figure_out_pager({'PAGER':'less -z 40'}) assert pager == ['less', '-z', '40'], "Got %s back" % pager
def test_2(self): pager = wmw.figure_out_pager({}) assert pager == ['less'], "Got %s back" % pager