~free.ekanayaka/storm/infoheritance

« back to all changes in this revision

Viewing changes to tests/sqlobject.py

  • Committer: Raphael Badin
  • Date: 2011-10-19 08:13:24 UTC
  • Revision ID: raphael.badin@canonical.com-20111019081324-kd97eonptjpjs07q
Fix test_result_set_count_sliced_start_none to make sure that slice.end is used.

Show diffs side-by-side

added added

removed removed

Lines of Context:
775
775
 
776
776
    def test_result_set_count_sliced_start_none(self):
777
777
        result = self.Person.select()
778
 
        sliced_result = result[None:3]
779
 
        self.assertEquals(len(list(sliced_result)), 2)
780
 
        self.assertEquals(sliced_result.count(), 2)
 
778
        sliced_result = result[None:1]
 
779
        self.assertEquals(len(list(sliced_result)), 1)
 
780
        self.assertEquals(sliced_result.count(), 1)
781
781
 
782
782
    def test_result_set_count_sliced_end_none(self):
783
783
        result = self.Person.select()