Exemplo n.º 1
0
Arquivo: test.py Projeto: vdt/zamboni
 def test_uid(self, urlopen):
     metrics('x', 'install', {})
     assert urlopen.call_args[0][0].get_full_url().endswith('x')
Exemplo n.º 2
0
Arquivo: test.py Projeto: vdt/zamboni
 def test_other(self, urlopen):
     urlopen.return_value = self.get_response(200)
     eq_(metrics('x', 'install', {}), 200)
Exemplo n.º 3
0
Arquivo: test.py Projeto: vdt/zamboni
 def test_error(self, urlopen):
     urlopen.return_value = self.get_response(403)
     eq_(metrics('x', 'install', {}), 403)
Exemplo n.º 4
0
 def test_uid(self, urlopen):
     metrics('x', 'install', {})
     assert urlopen.call_args[0][0].get_full_url().endswith('x')
Exemplo n.º 5
0
 def test_other(self, urlopen):
     urlopen.return_value = self.get_response(200)
     eq_(metrics('x', 'install', {}), 200)
Exemplo n.º 6
0
 def test_error(self, urlopen):
     urlopen.return_value = self.get_response(403)
     eq_(metrics('x', 'install', {}), 403)