def test_build_request(self):
        url = "http://storj.io/"
        data = "test"
        headers = {"referer": "http://www.google.com/"}
        r = bt.build_request(url, data, headers)
        self.assertTrue(isinstance(r, bt.Request))
        
        # Invalid URL.
        url = ""
        try:
            r = bt.build_request(url, data, headers)
        except __HOLE__:
            pass
dataset/ETHPy150Open Storj/dataserv-client/tests/test_bandwidth_test.py/TestBandwidthTest.test_build_request