def test_async(self): """Test http._enqueue using http://www.wikipedia.org/.""" r = http._enqueue('http://www.wikipedia.org/') self.assertIsInstance(r, threadedhttp.HttpRequest) self.assertEqual(r.status, 200) self.assertIn('<html lang="mul"', r.content) self.assertIsInstance(r.content, unicode) self.assertIsInstance(r.raw, bytes)