def test_not(self): self.fill_map(count=3) predicate = not_(equal("this", "value-1")) self.assertCountEqual(self.map.key_set(predicate), ["key-0", "key-2"])
def test_not(self): predicate = not_(equal("this", "value-1")) self.assertEqual( str(predicate), "NotPredicate(predicate=EqualPredicate(attribute='this', value=value-1))", )