counter: add reset();

This commit is contained in:
Konstantin Baierer 2021-03-12 18:39:27 +01:00
parent a3465ca1a0
commit a678bbf966
2 changed files with 11 additions and 2 deletions

View file

@ -14,6 +14,10 @@ def test_counter_string():
def test_counter_init():
c = EynollahIdCounter(region_idx=2)
assert c.get('region') == 2
c.inc('region')
assert c.get('region') == 3
c.reset()
assert c.get('region') == 2
def test_counter_methods():
c = EynollahIdCounter()