def test_as_none(self):
     ret = criteria._validate_limit(None)
     self.assertTrue(ret is None)
 def test_as_int_string(self):
     input = '20'
     ret = criteria._validate_limit(input)
     self.assertEqual(ret, 20)
 def test_as_int(self):
     input = 20
     ret = criteria._validate_limit(input)
     self.assertEqual(ret, input)
Example #4
0
 def test_as_none(self):
     ret = criteria._validate_limit(None)
     self.assertTrue(ret is None)
Example #5
0
 def test_as_int_string(self):
     input = '20'
     ret = criteria._validate_limit(input)
     self.assertEqual(ret, 20)
Example #6
0
 def test_as_int(self):
     input = 20
     ret = criteria._validate_limit(input)
     self.assertEqual(ret, input)