Chromium Code Reviews| OLD | NEW |
|---|---|
| (Empty) | |
| 1 # Copyright (c) 2006 Twisted Matrix Laboratories. | |
| 2 # See LICENSE for details. | |
| 3 | |
| 4 import time | |
| 5 | |
| 6 from twisted.trial import unittest | |
| 7 | |
| 8 from twisted.names import dns, cache | |
| 9 | |
| 10 class Caching(unittest.TestCase): | |
| 11 def testLookup(self): | |
| 12 c = cache.CacheResolver({ | |
| 13 dns.Query(name='example.com', type=dns.MX, cls=dns.IN): (time.time() , ([], [], []))}) | |
| 14 return c.lookupMailExchange('example.com').addCallback(self.assertEquals , ([], [], [])) | |
| OLD | NEW |