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