def main(): print "My application starts..." a = 2 b = 3 x = True y = False print add(a, b) print mul(a, b) print and_(x, y) print or_(x, y)
def main(): print "debut" a=2 b=3 x=True y=False print add(a,b) print nul(a,b) print and_(a,b) print or_(a,b) print or_(x,y)
def test_and_(self): self.assertEquals(logic.and_(True, False), False)
def test_and(self): self.assertEquals(logic.and_(0,1),0)
def test_and(self): self.assertEquals(logic.and_(True,True), True)