

@nottest
def test_receipt(self, command):
    'Test if the server send RECEIPT for a command'
    m = Main()
    m.tcp_connect()
    m.send_connect({
        
    })
    m.get_frame()
    tmpId = str(uuid.uuid4())
    body.send_frame(command, [('receipt', tmpId)], '')
    (result, headers, body) = m.get_frame()
    eq_(result, 'RECEIPT')
    for (name, value) in headers:
        if (name == 'receipt-id'):
            eq_(value, tmpId)
            return
    raise Exception('No receipt-id')

dataset/ETHPy150Open ebu/radiodns-plugit/RadioVisServer/tests.py MainTests.test_receipt/VarMisuse@56/84 `m`->`body`