コード例 #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))"
     )
コード例 #2
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))")
コード例 #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"])
コード例 #4
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"])