@@ -0,0 +1,623 @@
+import unittest, os, sys%0A%0Acurrent_dir = os.path.dirname(__file__)%0Abase_dir = os.path.join(current_dir, os.pardir, os.pardir)%0Asys.path.append(base_dir)%0A%0Afrom requests.exceptions import ConnectionError%0Afrom pycrawler.http import HttpRequest%0A%0A%0Aclass HttpRequestTests(unittest.TestCase):%0A%0A    def test_response_not_empty(self):%0A        url = 'http://www.pasarpanda.com'%0A        http = HttpRequest.get(url)%0A        self.assertIsNotNone(http)%0A%0A    def test_raise_error(self):%0A        url = 'http://www.fake-url-that-not-exist-on-the-internet.com'%0A        with self.assertRaises(ConnectionError):%0A            HttpRequest.get(url)%0A

Create testcase