<s> from pyformance . meters import CallbackGauge <EOL> from tests import TimedTestCase <EOL> class CallbackGaugeTestCase ( TimedTestCase ) : <EOL> def setUp ( self ) : <EOL> super ( CallbackGaugeTestCase , self ) . setUp ( ) <EOL> self . _value = None <EOL> self . gauge = CallbackGauge ( self . _get_val ) <EOL> def tearDown ( self ) : <EOL> super ( CallbackGaugeTestCase , self ) . tearDown ( ) <EOL> def _get_val ( self ) : <EOL> return self . _value <EOL> def test__value ( self ) : <EOL> self . _value = <NUM_LIT> <EOL> self . assertEqual ( self . gauge . get_value ( ) , self . _value ) </s>
