Пример #1
0
 def test_some_unicode(self, urlopen):
     send('install', {'name': u'Вагиф Сәмәдоғлу'})
Пример #2
0
 def test_called_data(self, urlopen):
     data = {'foo': 'bar'}
     send('install', data)
     eq_(urlopen.call_args[0][0].data, json.dumps(data))
Пример #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'))
Пример #4
0
 def test_called(self, urlopen):
     send('install', {})
     eq_(urlopen.call_args[0][0].data, '{}')
Пример #5
0
 def test_some_unicode(self, urlopen):
     send('install', {'name': u'Вагиф Сәмәдоғлу'})
Пример #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'))
Пример #7
0
 def test_called_data(self, urlopen):
     data = {'foo': 'bar'}
     send('install', data)
     eq_(urlopen.call_args[0][0].data, json.dumps(data))
Пример #8
0
 def test_called(self, urlopen):
     send('install', {})
     eq_(urlopen.call_args[0][0].data, '{}')