Пример #1
0
 def fn(self):
     n, sdict = listparser._mkfile(obj, 'agent', None, None)
     self.assert_(n is None)
     self.assertEqual(sdict.bozo, 1)
Пример #2
0
 def fn(self):
     f, sdict = listparser._mkfile(obj, 'agent', None, None)
     f.close()
     self.assert_(f is not None)
     self.assertFalse(sdict)
Пример #3
0
 def testUserAgentInvalid(self):
     url = 'http://localhost:8091/tests/http/useragent.xml'
     obj, sdict = listparser._mkfile(url, True, None, None)
     obj.close()
     self.assertEqual(sdict.status, 200)