예제 #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, '{}')