@patch('requests.post')
    def test_url(self, r_post):
        r_post.return_value = Mock(
            status_code=200,
            text='oauth_token=token&oauth_token_secret=token_secret'
        )

        credentials = PublicCredentials(
            consumer_key='key',
            consumer_secret='secret'
        )

        self.assertEqual(credentials.url, 'https://api.xero.com/oauth/Authorize?oauth_token=token')
Convenience function to start a bot on the given network, optionally joining
dataset/ETHPy150Open freakboy3742/pyxero/tests/auth.py/PublicCredentialsTest.test_url--crossover with--dataset/ETHPy150Open coleifer/irc/irc.py/run_bot