def get_deals(self, page=1, stage='incoming'):
        deals_url = 'deals' + self.format
        url = self.base_url + deals_url
        params = urllib.urlencode({
            'page': page,
            'stage': stage,
        })

        full_url = url + '?' + params

        req = urllib2.Request(full_url, headers=self.header)
        response = urllib2.urlopen(req)
        data = response.read()

        return data
Sets up the needed objects used throughout the test.
dataset/ETHPy150Open npinger/base-crm-api-client/base_client.py/BaseAPIService.get_deals--crossover with--dataset/ETHPy150Open log2timeline/dfvfs/tests/file_io/encrypted_stream_io.py/AESEncryptedStreamTest.setUp