<s> from pyformance import MetricsRegistry <EOL> from pyformance . meters import Meter <EOL> from tests import TimedTestCase <EOL> class RegistryTestCase ( TimedTestCase ) : <EOL> def setUp ( self ) : <EOL> super ( RegistryTestCase , self ) . setUp ( ) <EOL> self . registry = MetricsRegistry ( TimedTestCase . clock ) <EOL> def tearDown ( self ) : <EOL> super ( RegistryTestCase , self ) . tearDown ( ) <EOL> def test__add ( self ) : <EOL> self . registry . add ( '<STR_LIT:foo>' , Meter ( TimedTestCase . clock ) ) </s>
