def test_swap_3(self): i, j = None, [] i, j = _swap_var(i, j) self.assert_(i == []) self.assert_(j == None)
def test_swap_2(self): i, j = 1, 1 i, j = _swap_var(i, j) self.assert_(i == 1) self.assert_(j == 1)
def test_swap_1(self): i, j = 1, 40 i, j = _swap_var(i, j) self.assert_(i == 40) self.assert_(j == 1)