# Path: grazyna/modules.py
# class ExecutedCounter(object):
#     __slots__ = ('last_time', 'counter')
# 
#     def __init__(self):
#         self.last_time = datetime.now()
#         self.counter = 0
# 
#     def inc(self):
#         self.counter += 1


from grazyna.modules import ExecutedCounter
from freezegun import freeze_time
from datetime import datetime


def test_counter_init():
    with freeze_time('2016-06-06'):
        counter = ExecutedCounter()
    assert counter.counter == 0
    assert counter.last_time == datetime(2016, 6, 6)


def test_counter_increase():

# Path: grazyna/modules.py
# class ExecutedCounter(object):
#     __slots__ = ('last_time', 'counter')
# 
#     def __init__(self):
#         self.last_time = datetime.now()
#         self.counter = 0
# 
#     def inc(self):
#         self.counter += 1


# Path: grazyna/tests/test_executed_counter.py
from grazyna.modules import ExecutedCounter
from freezegun import freeze_time
from datetime import datetime



def test_counter_init():
    with freeze_time('2016-06-06'):
        counter = ExecutedCounter()
    assert counter.counter == 0
    assert counter.last_time == datetime(2016, 6, 6)


def test_counter_increase():

    counter = ExecutedCounter()