summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBruno Binet <bruno.binet@gmail.com>2014-02-21 16:33:21 (GMT)
committerBruno Binet <bruno.binet@gmail.com>2014-02-21 16:33:42 (GMT)
commit9418ce78ced8b77b7382792b7866ccdb1fa6ab92 (patch)
treebc8ab1ff4b76a4f8429010532bf6d7cc083d576c
parent297aae2c619772a1ca1ef01e9f83b9bdc51953b1 (diff)
downloadgstatsd-9418ce78ced8b77b7382792b7866ccdb1fa6ab92.zip
gstatsd-9418ce78ced8b77b7382792b7866ccdb1fa6ab92.tar.gz
gstatsd-9418ce78ced8b77b7382792b7866ccdb1fa6ab92.tar.bz2
fix tests: _process signature has changed
-rw-r--r--gstatsd/service_test.py16
1 files changed, 8 insertions, 8 deletions
diff --git a/gstatsd/service_test.py b/gstatsd/service_test.py
index 129c96f..7822d7d 100644
--- a/gstatsd/service_test.py
+++ b/gstatsd/service_test.py
@@ -34,37 +34,37 @@ class StatsServiceTest(unittest.TestCase):
def test_counters(self):
pkt = 'foo:1|c'
- self.svc._process(pkt, None)
+ self.svc._process(pkt)
self.assertEquals(self.stats.counts, {'foo': 1})
- self.svc._process(pkt, None)
+ self.svc._process(pkt)
self.assertEquals(self.stats.counts, {'foo': 2})
pkt = 'foo:-1|c'
- self.svc._process(pkt, None)
+ self.svc._process(pkt)
self.assertEquals(self.stats.counts, {'foo': 1})
def test_counters_sampled(self):
pkt = 'foo:1|c|@.5'
- self.svc._process(pkt, None)
+ self.svc._process(pkt)
self.assertEquals(self.stats.counts, {'foo': 2})
def test_timers(self):
pkt = 'foo:20|ms'
- self.svc._process(pkt, None)
+ self.svc._process(pkt)
self.assertEquals(self.stats.timers, {'foo': [20.0]})
pkt = 'foo:10|ms'
- self.svc._process(pkt, None)
+ self.svc._process(pkt)
self.assertEquals(self.stats.timers, {'foo': [20.0, 10.0]})
def test_key_sanitize(self):
pkt = '\t\n#! foo . bar \0 ^:1|c'
- self.svc._process(pkt, None)
+ self.svc._process(pkt)
self.assertEquals(self.stats.counts, {'foo.bar': 1})
def test_key_prefix(self):
args = (':8125', [':2003'], 5, 90, 0, 'pfx')
svc = service.StatsDaemon(*args)
pkt = 'foo:1|c'
- svc._process(pkt, None)
+ svc._process(pkt)
self.assertEquals(svc._stats.counts, {'pfx.foo': 1})