Ejemplo n.º 1
0
 def test_periodic_not_combos(self):
     assert_equal(~self.pvolA, self.pvolA_)
     assert_equal(self.pvolA, ~self.pvolA_)
     assert_equal(~(self.pvolB | self.pvolC),
                  volume.NegatedVolume(self.pvolB | self.pvolC))
     assert_equal((~(self.pvolB | self.pvolC))(25), True)
     assert_equal((~(self.pvolB | self.pvolC))(75), False)
     assert_equal((~(self.pvolB | self.pvolC))(-75), False)
Ejemplo n.º 2
0
 def test_periodic_not_combos(self):
     assert ~self.pvolA == self.pvolA_
     assert self.pvolA == ~self.pvolA_
     assert (
         ~(self.pvolB | self.pvolC) == volume.NegatedVolume(self.pvolB
                                                            | self.pvolC))
     assert (~(self.pvolB | self.pvolC))(25) is True
     assert (~(self.pvolB | self.pvolC))(75) is False
     assert (~(self.pvolB | self.pvolC))(-75) is False