Exemple #1
0
 def test_not(self):
     predicate = not_(is_equal_to("this", "value-1"))
     self.assertEqual(
         str(predicate),
         "NotPredicate(predicate=EqualPredicate(attribute='this', value=value-1))"
     )
 def test_not(self):
     predicate = not_(is_equal_to("this", "value-1"))
     self.assertEqual(str(predicate), "NotPredicate(predicate=EqualPredicate(attribute='this', value=value-1))")
Exemple #3
0
 def test_not(self):
     self._fill_map(count=3)
     predicate = not_(is_equal_to("this", "value-1"))
     self.assertItemsEqual(self.map.key_set(predicate), ["key-0", "key-2"])
 def test_not(self):
     self._fill_map(count=3)
     predicate = not_(is_equal_to("this", "value-1"))
     self.assertItemsEqual(self.map.key_set(predicate), ["key-0", "key-2"])