def test_and(self): expr = sn.and_(self.a, self.b) self._a = 1 self._b = 1 self.assertTrue(expr) self.assertFalse(sn.not_(expr))
def test_and(user_obj): expr = sn.and_(user_obj.a, user_obj.b) user_obj._a = 1 user_obj._b = 1 assert expr assert not sn.not_(expr)
def test_and(self): expr = sn.and_(self.a, self.b) self._a = 1 self._b = 1 assert expr assert not sn.not_(expr)
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))
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)
def test_or(self): expr = sn.or_(self.a, self.b) self._a = 0 self._b = 0 assert not expr assert sn.not_(expr)