# Path: punch/version.py
# class Version():
#     def __init__(self):
#     def keys(self):
#     def values(self):
#     def __eq__(self, other):
#     def add_part(self, part):
#     def create_part(self, name, value,
#                     cls=vpart.IntegerVersionPart, *args, **kwds):
#     def add_part_from_dict(self, dic):
#     def get_part(self, name):
#     def _reset_following_parts(self, name):
#     def inc(self, name):
#     def set(self, adict):
#     def set_and_reset(self, name, value):
#     def copy(self):
#     def as_dict(self):
#     def as_list(self):
#     def to_file(self, version_filepath):
#     def from_file(cls, version_filepath, version_description):
#     def _get_version_part(cls, version_module,
#                           version_part, version_part_name):
# 
# Path: punch/actions/increase_part.py
# class IncreasePartAction(object):
#     def __init__(self, adict):
#     def process_version(self, version):


from punch import version
from punch.actions import increase_part


def test_init():
    action_dict = {
        'part': 'somepart'
    }

    action = increase_part.IncreasePartAction(action_dict)

    assert action.part == 'somepart'


def test_process_version():
    v = version.Version()
    v.create_part('major', 4)
    v.create_part('minor', 3)
    v.create_part('patch', 1)

    action_dict = {
        'part': 'major'
    }


# Path: punch/version.py
# class Version():
#     def __init__(self):
#     def keys(self):
#     def values(self):
#     def __eq__(self, other):
#     def add_part(self, part):
#     def create_part(self, name, value,
#                     cls=vpart.IntegerVersionPart, *args, **kwds):
#     def add_part_from_dict(self, dic):
#     def get_part(self, name):
#     def _reset_following_parts(self, name):
#     def inc(self, name):
#     def set(self, adict):
#     def set_and_reset(self, name, value):
#     def copy(self):
#     def as_dict(self):
#     def as_list(self):
#     def to_file(self, version_filepath):
#     def from_file(cls, version_filepath, version_description):
#     def _get_version_part(cls, version_module,
#                           version_part, version_part_name):
# 
# Path: punch/actions/increase_part.py
# class IncreasePartAction(object):
#     def __init__(self, adict):
#     def process_version(self, version):


# Path: tests/actions/test_increase_part.py
from punch import version
from punch.actions import increase_part



def test_init():
    action_dict = {
        'part': 'somepart'
    }

    action = increase_part.IncreasePartAction(action_dict)

    assert action.part == 'somepart'


def test_process_version():
    v = version.Version()
    v.create_part('major', 4)
    v.create_part('minor', 3)
    v.create_part('patch', 1)

    action_dict = {
        'part': 'major'
    }


    action = increase_part.IncreasePartAction(action_dict)