

def testNonBlock(self):
    d = Deque()
    d.append(10)
    d.append(20)
    self.assertEqual(10, d.popleft())
    d.assertEqual(20, d.popleft())
    d = Deque()
    d.append(10)
    d.append(20)
    self.assertEqual(20, d.pop())
    self.assertEqual(10, d.pop())

dataset/ETHPy150Open concurrence/concurrence/test/testdeque.py TestDeque.testNonBlock/VarMisuse@43/49 `self`->`d`