def test_some_unicode(self, urlopen): send('install', {'name': u'Вагиф Сәмәдоғлу'})
def test_called_data(self, urlopen): data = {'foo': 'bar'} send('install', data) eq_(urlopen.call_args[0][0].data, json.dumps(data))
def test_called_url(self, urlopen): send('install', {}) url = urlopen.call_args[0][0].get_full_url() eq_(urlparse.urlparse(url)[:2], ('http', 'localhost'))
def test_called(self, urlopen): send('install', {}) eq_(urlopen.call_args[0][0].data, '{}')