def testFilter(self): p = ParametersI() p.noPage() self.assertEquals(None, p.theFilter) p.page(2, 3) self.assert_(p.isPagination()) self.assertEquals(rint(2), p.theFilter.offset) self.assertEquals(rint(3), p.theFilter.limit) p.noPage() self.assertFalse(p.isPagination()) self.assertEquals(None, p.theFilter.offset) self.assertEquals(None, p.theFilter.limit) self.assertEquals(None, p.getLimit()) self.assertEquals(None, p.getOffset())
def testFilter(self): p = ParametersI() p.noPage() assert None == p.theFilter p.page(2, 3) assert p.isPagination() assert rint(2) == p.theFilter.offset assert rint(3) == p.theFilter.limit p.noPage() assert not p.isPagination() assert None == p.theFilter.offset assert None == p.theFilter.limit assert None == p.getLimit() assert None == p.getOffset()
def testFilter(self): p = ParametersI() p.noPage() assert None == p.theFilter p.page(2, 3) assert p.isPagination() assert rint(2) == p.theFilter.offset assert rint(3) == p.theFilter.limit p.noPage() assert not p.isPagination() assert None == p.theFilter.offset assert None == p.theFilter.limit assert None == p.getLimit() assert None == p.getOffset()
def testFilter(self): p = ParametersI() p.noPage() self.assertEquals(None, p.theFilter) p.page(2,3) self.assert_(p.isPagination()) self.assertEquals( rint(2), p.theFilter.offset ) self.assertEquals( rint(3), p.theFilter.limit ) p.noPage() self.assertFalse(p.isPagination()) self.assertEquals(None, p.theFilter.offset) self.assertEquals(None, p.theFilter.limit) self.assertEquals(None, p.getLimit()) self.assertEquals(None, p.getOffset())
def testDefaults(self): p = ParametersI() # Removed: self.assertFalse(p.isLeaves()) self.assertFalse(p.isGroup()) self.assertFalse(p.isExperimenter()) self.assertFalse(p.isEndTime()) self.assertFalse(p.isStartTime()) self.assertFalse(p.isPagination()) self.assertFalse(p.getUnique())
def testDefaults(self): p = ParametersI() # Removed: assert not p.isLeaves() assert not p.isGroup() assert not p.isExperimenter() assert not p.isEndTime() assert not p.isStartTime() assert not p.isPagination() assert not p.getUnique()