From f6a14d17239caed14125d0b70e245f4450908bbc Mon Sep 17 00:00:00 2001 From: John Lee Date: Mon, 10 Mar 2014 10:41:51 -0700 Subject: [PATCH] adding test for descending order_by fix --- test/test_persistence.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/test/test_persistence.py b/test/test_persistence.py index 6cc8654..efd689f 100644 --- a/test/test_persistence.py +++ b/test/test_persistence.py @@ -212,6 +212,10 @@ class TableTestCase(unittest.TestCase): assert len(ds) == 2, ds ds = list(self.tbl.find(place=TEST_CITY_1, _limit=1, _step=2)) assert len(ds) == 1, ds + ds = list(self.tbl.find(order_by=['temperature'])) + assert ds[0]['temperature'] == -1, ds + ds = list(self.tbl.find(order_by=['-temperature'])) + assert ds[0]['temperature'] == 8, ds def test_offset(self): ds = list(self.tbl.find(place=TEST_CITY_1, _offset=1))