def test_fragment_query_string(self):
        qs = testall.randdict(5)
        query_string = simplefetch.urlencode(qs)
        
        res = simplefetch.get("%s?%s#fragment" % (testall.test_server_host, query_string))
        content = json.loads(res.content)

        self.assertEqual(res.status, 200)
        self.assertEqual(content['method'], 'GET')
        self.assertEqual(content['query_string'], "%s#fragment" % query_string)
    def test_fragment_basic_auth_query_string(self):
        qs = testall.randdict(5)
        query_string = simplefetch.urlencode(qs)
        
        headers = simplefetch.Headers()
        headers.basic_auth('simplefetch_username', 'simplefetch_password')
        res = simplefetch.get("%sbasic_auth?%s#fragment" % (testall.test_server_host, query_string), headers=headers.items())
        content = json.loads(res.content)

        self.assertEqual(res.status, 200)
        self.assertEqual(content['method'], 'GET')
        self.assertEqual(content['query_string'], "%s#fragment" % query_string)