Exemplo n.º 1
0
 def test_invokes_statsd_send_default_value(self):
     with mock.patch('sprockets.clients.statsd._send') as send:
         statsd.set_gauge('foo', 'bar', 'baz', 'qux', value=99)
         send.assert_called_once_with('foo.bar.baz.qux', 99, 'g')
Exemplo n.º 2
0
 def test_invokes_statsd_send_default_value(self):
     with mock.patch('sprockets.clients.statsd._send') as send:
         statsd.set_gauge('foo', 'bar', 'baz', 'qux', value=99)
         send.assert_called_once_with('foo.bar.baz.qux', 99, 'g')
Exemplo n.º 3
0
 def test_single_delimited_key_invokes_send(self):
     with mock.patch('sprockets.clients.statsd._send') as send:
         statsd.set_gauge('foo.bar.baz', value=20)
         send.assert_called_once_with('foo.bar.baz', 20, 'g')
Exemplo n.º 4
0
 def test_single_delimited_key_invokes_send(self):
     with mock.patch('sprockets.clients.statsd._send') as send:
         statsd.set_gauge('foo.bar.baz', value=20)
         send.assert_called_once_with('foo.bar.baz', 20, 'g')