Пример #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
    def test_stacks(self):
        '''test stacks (push/pop)'''

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