def test_nonIntegralTTL(self):
        """
        L{dns.RRHeader} converts TTLs to integers.
        """
        ttlAsFloat = 123.45
        header = dns.RRHeader("example.com",
                              dns.A,
                              dns.IN,
                              ttlAsFloat,
                              dns.Record_A("127.0.0.1"))
        self.assertEqual(header.ttl, int(ttlAsFloat))

        L{dns.RRHeader} converts TTLs to integers.
        
stackoverflow/venv/lib/python3.6/site-packages/twisted/names/test/test_dns.py