Пример #1
0
def test_or(user_obj):
    expr = sn.or_(user_obj.a, user_obj.b)
    user_obj._a = 0
    user_obj._b = 0
    assert not expr
    assert sn.not_(expr)
Пример #2
0
 def test_or(self):
     expr = sn.or_(self.a, self.b)
     self._a = 0
     self._b = 0
     self.assertFalse(expr)
     self.assertTrue(sn.not_(expr))
Пример #3
0
 def test_or(self):
     expr = sn.or_(self.a, self.b)
     self._a = 0
     self._b = 0
     assert not expr
     assert sn.not_(expr)