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