

def test_boolean(self):
    var = IfParser([True, 'and', True, 'and', True]).parse()
    self.assert_(var.resolve({
        
    }))
    var = IfParser([False, 'or', False, 'or', True]).parse()
    self.assert_(var.resolve({
        
    }))
    var = IfParser([True, 'and', False, 'or', True]).parse()
    self.assert_(self.resolve({
        
    }))
    var = IfParser([False, 'or', True, 'and', True]).parse()
    self.assert_(var.resolve({
        
    }))
    var = IfParser([True, 'and', True, 'and', False]).parse()
    self.assertFalse(var.resolve({
        
    }))
    var = IfParser([False, 'or', False, 'or', False]).parse()
    self.assertFalse(var.resolve({
        
    }))
    var = IfParser([False, 'or', True, 'and', False]).parse()
    self.assertFalse(var.resolve({
        
    }))
    var = IfParser([False, 'and', True, 'or', False]).parse()
    self.assertFalse(var.resolve({
        
    }))

dataset/ETHPy150Open aehlke/manabi/apps/utils/templatetags/smartif.py SmartIfTests.test_boolean/VarMisuse@107/124 `var`->`self`