def test_greater_less(self): predicate = is_less_than_or_equal_to("this", 10) self.assertEqual( str(predicate), "GreaterLessPredicate(attribute='this', value=10, is_equal=True, is_less=True)" )
def test_less_than_or_equal(self): self._fill_map_numeric() predicate = is_less_than_or_equal_to("this", 10) self.assertItemsEqual(self.map.key_set(predicate), range(0, 11))
def test_greater_less(self): predicate = is_less_than_or_equal_to("this", 10) self.assertEqual(str(predicate), "GreaterLessPredicate(attribute='this', value=10, is_equal=True, is_less=True)")
def test_less_than_or_equal(self): self._fill_map_numeric() predicate = is_less_than_or_equal_to("this", 10) six.assertCountEqual(self, self.map.key_set(predicate), list(range(0, 11)))