'_SendmsgMixin handles multiple file descriptors per recvmsg, calling
L{IFileDescriptorReceiver.fileDescriptorReceived} once per received
file descriptor. Scenario: two CMSGs with one FD each.'

def test_multiFileDescriptorReceivedPerRecvmsgTwoCMSGs(self):

    from twisted.python.sendmsg import SCM_RIGHTS
    def ancillaryPacker(fdsToSend):
        ancillary = [(SOL_SOCKET, SCM_RIGHTS, pack('i', fd)) for fd in fdsToSend]
        expectedCount = 2
        return (ancillary, expectedCount)
    self._sendmsgMixinFileDescriptorReceivedDriver(ancillaryPacker)
