Esempio n. 1
0
 def test_metric_slugs(self):
     """Test that ``R.metric_slugs`` makes a call to Redis SMEMBERS."""
     self.r.metric_slugs()
     self.redis.assert_has_calls([call.smembers(self.r._metric_slugs_key)])
 def test_gauge_slugs(self):
     """Tests that ``R.gauge_slugs`` calls the SMEMBERS command."""
     self.r.gauge_slugs()
     self.redis.assert_has_calls([call.smembers(self.r._gauge_slugs_key)])
Esempio n. 3
0
 def test_gauge_slugs(self):
     """Tests that ``R.gauge_slugs`` calls the SMEMBERS command."""
     self.r.gauge_slugs()
     self.redis.assert_has_calls([call.smembers(self.r._gauge_slugs_key)])
 def test_metric_slugs(self):
     """Test that ``R.metric_slugs`` makes a call to Redis SMEMBERS."""
     self.r.metric_slugs()
     self.redis.assert_has_calls([call.smembers(self.r._metric_slugs_key)])