def test_format_limit(): """_format_lmit should correctly format the limit clause """ q = Query().limit(1000) assert q._format_limit() == 'LIMIT 1000'