Did I find the right examples for you? yes no

All Samples(9)  |  Call(8)  |  Derive(0)  |  Import(1)

src/p/y/pystat-0.2.4/pystat/tests/test_plain_counter.py   pystat(Download)
 
from pystat.tests.base import TestCase
from pystat.plain_counter import PlainCounter
 
 
class TestPlainCounter(TestCase):
 
    def setUp(self):
        super(TestPlainCounter, self).setUp()
        self.counter = PlainCounter()
    def test_union(self):
        c1 = PlainCounter()
        c2 = PlainCounter()
        c1.add()
        c1.add()
    def test_init(self):
        c = PlainCounter([1, 2, 3])
        self.assertEqual(3, len(c))
 
    def test_fluent(self):