def test_or(self): predicate = or_(is_equal_to("this", "value-1"), is_equal_to("this", "value-2")) self.assertEqual( str(predicate), "OrPredicate(EqualPredicate(attribute='this', value=value-1)," " EqualPredicate(attribute='this', value=value-2))")
def test_or(self): predicate = or_(is_equal_to("this", "value-1"), is_equal_to("this", "value-2")) self.assertEqual( str(predicate), "OrPredicate(EqualPredicate(attribute='this', value=value-1)," " EqualPredicate(attribute='this', value=value-2))", )
def test_or(self): self._fill_map() predicate = or_(is_equal_to("this", "value-1"), is_equal_to("this", "value-2")) self.assertItemsEqual(self.map.key_set(predicate), ["key-1", "key-2"])