예제 #1
0
 def test_stacks ( self ):
     '''test stacks (push/pop)'''
     
     push ( a = 1, b = 2 )
     self.failUnless ( 
         pop ( 'a' ) == 1 and pop ( 'b' ) == 2
     )
예제 #2
0
def test_stacks():
    """test stacks (push/pop)"""
    push(a=1, b=2)
    assert pop('a') == 1
    assert pop('b') == 2
예제 #3
0
파일: templates.py 프로젝트: giorgil2/breve
    def test_stacks(self):
        '''test stacks (push/pop)'''

        push(a=1, b=2)
        self.failUnless(pop('a') == 1 and pop('b') == 2)