示例#1
0
文件: test.py 项目: vdt/zamboni
 def test_some_unicode(self, urlopen):
     send('install', {'name': u'Вагиф Сәмәдоғлу'})
示例#2
0
文件: test.py 项目: vdt/zamboni
 def test_called_data(self, urlopen):
     data = {'foo': 'bar'}
     send('install', data)
     eq_(urlopen.call_args[0][0].data, json.dumps(data))
示例#3
0
文件: test.py 项目: vdt/zamboni
 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
文件: test.py 项目: vdt/zamboni
 def test_called(self, urlopen):
     send('install', {})
     eq_(urlopen.call_args[0][0].data, '{}')
示例#5
0
文件: test.py 项目: bsmedberg/zamboni
 def test_some_unicode(self, urlopen):
     send('install', {'name': u'Вагиф Сәмәдоғлу'})
示例#6
0
文件: test.py 项目: bsmedberg/zamboni
 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
文件: test.py 项目: bsmedberg/zamboni
 def test_called_data(self, urlopen):
     data = {'foo': 'bar'}
     send('install', data)
     eq_(urlopen.call_args[0][0].data, json.dumps(data))
示例#8
0
文件: test.py 项目: bsmedberg/zamboni
 def test_called(self, urlopen):
     send('install', {})
     eq_(urlopen.call_args[0][0].data, '{}')