def testRenderNumber(self): qspec = qsb_number(47.3) is_number_QSpec(qspec, True) result = render_query_string(qspec) self.assertEqual(result, u'47.3')
def testGt(self): qspec = qsb_gt(qsb_field("abcd"), qsb_number(-1)) is_gt_QSpec(qspec, True) result = render_query_string(qspec) self.assertEqual(result, u'abcd>-1')
def testLe(self): qspec = qsb_le(qsb_field("A*B"), qsb_number(45.9)) is_le_QSpec(qspec, True) result = render_query_string(qspec) self.assertEqual(result, u'A_B<=45.9')
def testGe(self): qspec = qsb_ge(qsb_field("ABC"), qsb_number(0)) is_ge_QSpec(qspec, True) result = render_query_string(qspec) self.assertEqual(result, u'ABC>=0')
def testLt(self): qspec = qsb_lt(qsb_field("ZZZ"), qsb_number(4300)) is_lt_QSpec(qspec, True) result = render_query_string(qspec) self.assertEqual(result, u'ZZZ<4300')