# Path: tests/local/base.py
# class StatsTest(unittest.TestCase):
#     def setUp(self):
#         self.registry = Registry()


from tests.local.base import StatsTest


class CounterTestCase(StatsTest):
    def test_counter_works(self):
        counter = self.registry.counter('CounterTestCase.test_counter_works')

        counter.increment()
        counter.increment(2)
        stats = self.registry.get_stats()
        assert stats.CounterTestCase.test_counter_works.value == 3

        counter.decrement(2)

# Path: tests/local/base.py
# class StatsTest(unittest.TestCase):
#     def setUp(self):
#         self.registry = Registry()


# Path: tests/local/test_counter.py
from tests.local.base import StatsTest



class CounterTestCase(StatsTest):
    def test_counter_works(self):
        counter = self.registry.counter('CounterTestCase.test_counter_works')

        counter.increment()
        counter.increment(2)
        stats = self.registry.get_stats()
        assert stats.CounterTestCase.test_counter_works.value == 3

        counter.decrement(2)

        counter.decrement()