def test_expires(self):
        item = {
            'foo': 'bar',
            'baz': [1, 2, 3]
        }
        signed_item = get_signed_item(item, PUBLIC_KEY, PRIVATE_KEY)
        self.assertEqual(0.0, signed_item['_p4p2p']['expires'])
        signed_item = get_signed_item(item, PUBLIC_KEY, PRIVATE_KEY, 'foo')
        self.assertEqual(0.0, signed_item['_p4p2p']['expires'])
        signed_item = get_signed_item(item, PUBLIC_KEY, PRIVATE_KEY, 123)
        self.assertEqual(signed_item['_p4p2p']['timestamp'] + 123,
                         signed_item['_p4p2p']['expires'])
        signed_item = get_signed_item(item, PUBLIC_KEY, PRIVATE_KEY, 123.456)
        self.assertEqual(signed_item['_p4p2p']['timestamp'] + 123.456,
                         signed_item['_p4p2p']['expires'])
        signed_item = get_signed_item(item, PUBLIC_KEY, PRIVATE_KEY, -1)
        self.assertEqual(0.0, signed_item['_p4p2p']['expires'])
Ensure the expires argument is handled and checked appropriately.
dataset/ETHPy150Open ntoll/p4p2p/test/dht/test_crypto.py/TestGetSignedItem.test_expires