def test_pack_unpack(self):
    for (line, elem) in (('a, = a,', 'LOAD_CONST'), ('a, b = a, b', 'ROT_TWO'), ('a, b, c = a, b, c', 'ROT_THREE')):
        code = compile(line, '', 'single')
        self.assertInBytecode(code, elem)
        self.assertNotInBytecode(code, 'BUILD_TUPLE')
        self.assertNotInBytecode(code, 'UNPACK_TUPLE')
        self.check_lnotab(code)
def test_pack_unpack(self):
    for (line, elem) in (('a, = a,', 'LOAD_CONST'), ('a, b = a, b', 'ROT_TWO'), ('a, b, c = a, b, c', 'ROT_THREE')):
        code = compile(line, , 'single')
        self.assertInBytecode(code, elem)
        self.assertNotInBytecode(code, 'BUILD_TUPLE')
        self.assertNotInBytecode(code, 'UNPACK_TUPLE')
        self.check_lnotab(code)