def test_messageReceivedTimestamp(self):
        """
        L{server.DNSServerFactory.messageReceived} assigns a unix timestamp to
        the received message.
        """
        m = dns.Message()
        f = NoResponseDNSServerFactory()
        t = object()
        self.patch(server.time, 'time', lambda: t)
        f.messageReceived(message=m, proto=None, address=None)

        self.assertEqual(m.timeReceived, t)

        L{server.DNSServerFactory.messageReceived} assigns a unix timestamp to
        the received message.
        
stackoverflow/venv/lib/python3.6/site-packages/twisted/names/test/test_server.py