~cr3/storm/reference_is_in

« back to all changes in this revision

Viewing changes to tests/sqlobject.py

  • Committer: Thomas Hervé
  • Date: 2009-01-12 18:35:00 UTC
  • Revision ID: thomas@canonical.com-20090112183500-xn9m7tl4ow7e1k5h
Revert merge of 217644-count-distinct (r285).

The management of expr broke with some queries specifying order by.

Show diffs side-by-side

added added

removed removed

Lines of Context:
745
745
        result = self.Person.select()
746
746
        self.assertEquals(result.count(), 2)
747
747
 
748
 
    def test_result_set_count_limit(self):
749
 
        result = self.Person.select(limit=1)
750
 
        self.assertEquals(len(list(result)), 1)
751
 
        self.assertEquals(result.count(), 1)
752
 
 
753
 
    def test_result_set_count_sliced(self):
754
 
        result = self.Person.select()
755
 
        sliced_result = result[1:]
756
 
        self.assertEquals(len(list(sliced_result)), 1)
757
 
        self.assertEquals(sliced_result.count(), 1)
758
 
 
759
748
    def test_result_set_count_distinct(self):
760
749
        result = self.Person.select(
761
750
            "person.id = phone.person_id",