Пример #1
0
 def test_uid(self, urlopen):
     metrics('x', 'install', {})
     assert urlopen.call_args[0][0].get_full_url().endswith('x')
Пример #2
0
 def test_other(self, urlopen):
     urlopen.return_value = self.get_response(200)
     eq_(metrics('x', 'install', {}), 200)
Пример #3
0
 def test_error(self, urlopen):
     urlopen.return_value = self.get_response(403)
     eq_(metrics('x', 'install', {}), 403)
Пример #4
0
 def test_uid(self, urlopen):
     metrics('x', 'install', {})
     assert urlopen.call_args[0][0].get_full_url().endswith('x')
Пример #5
0
 def test_other(self, urlopen):
     urlopen.return_value = self.get_response(200)
     eq_(metrics('x', 'install', {}), 200)
Пример #6
0
 def test_error(self, urlopen):
     urlopen.return_value = self.get_response(403)
     eq_(metrics('x', 'install', {}), 403)