def test_users(self):
        self.service.user().info()
        self.expect('GET', '/user/info', {})
        self.service.user().info(login='1234')
        self.expect('GET', '/user/info', {'login': '1234'})
        self.service.user().info(login='1234', full_name='foo')
        self.expect('GET', '/user/info', {
            'login': '1234', 'full_name': 'foo'
        })

        self.service.user().link_history()
        self.expect('GET', '/user/link_history', {})
        self.service.user().link_history(link='http://foo.bar')
        self.expect('GET', '/user/link_history', {
            'link': 'http://foo.bar'
        })
        self.service.user().link_history(expand_client_id=True)
        self.expect('GET', '/user/link_history', {
            'expand_client_id': 'true'
        })

        self.service.user().network_history()
        self.expect('GET', '/user/network_history', {})
        self.service.user().network_history(expand_client_id=True)
        self.expect('GET', '/user/network_history', {
            'expand_client_id': 'true'
        })

        self.service.user().tracking_domain_list()
        self.expect('GET', '/user/tracking_domain_list', {})

        for method_name in ['clicks', 'countries', 'popular_links',
                            'referrers', 'referring_domains', 'share_counts']:
            method = getattr(self.service.user(), method_name)

            method()
            self.expect('GET', '/user/%s' % method_name, {})
            method(timezone='Europe/Andorra')
            self.expect('GET', '/user/%s' % method_name, {
                'timezone': 'Europe/Andorra'
            })
            method(timezone='Europe/Andorra', unit='month')
            self.expect('GET', '/user/%s' % method_name, {
                'unit': 'month',
                'timezone': 'Europe/Andorra'
            })
            method(timezone='Europe/Andorra', unit='month')
            self.expect('GET', '/user/%s' % method_name, {
                'unit': 'month',
                'timezone': 'Europe/Andorra'
            })
dataset/ETHPy150Open ducksboard/libsaas/test/test_bitly.py/BitlyTestCase.test_users/original