~ricardokirkner/txstatsd/gauge-with-delta

« back to all changes in this revision

Viewing changes to txstatsd/tests/test_metrics.py

  • Committer: lucio.torre@gmail.com
  • Date: 2011-11-18 19:42:56 UTC
  • mto: This revision was merged to the branch mainline in revision 51.
  • Revision ID: git-v1:f435b5b8c6464c8a714601936328de91fdd60a43
fixed per review comments

Show diffs side-by-side

added added

removed removed

Lines of Context:
52
52
        self.metrics.timing('timing', 101123)
53
53
        self.assertEqual(self.connection.data,
54
54
                         'txstatsd.tests.timing:101123|ms')
55
 
        
 
55
 
56
56
    def test_generic(self):
57
 
        """Test the timing operation."""
 
57
        """Test the GenericMetric class."""
58
58
        self.metrics.report('users', "pepe", "pd")
59
59
        self.assertEqual(self.connection.data,
60
60
                         'txstatsd.tests.users:pepe|pd')