def fn(self): n, sdict = listparser._mkfile(obj, 'agent', None, None) self.assert_(n is None) self.assertEqual(sdict.bozo, 1)
def fn(self): f, sdict = listparser._mkfile(obj, 'agent', None, None) f.close() self.assert_(f is not None) self.assertFalse(sdict)
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)