# Path: config.py
# class Entry(object):
#     value = None
#     name = None
# 
#     def __init__(self, name, value=None):
#         self.name = name
#         self.value = value
# 
#     def setvalue(self, value):
#         self.value = value
# 
#     def getvalue(self, parent):
#         return self.value
# 
#     def delvalue(self):
#         del self.value
# 
#     def __unicode__(self):
#         return self.name + u" : " + unicode(self.value)
# 
#     def __str__(self):
#         return self.__unicode__()


from unittest import TestCase
from config import Entry
import pytest

__author__ = 'faebser'


class TestEntry:

    def test_setvalue(self):
        test = Entry('test')
        test.setvalue('a word')
        assert test.value == 'a word'

    def test_getvalue(self):
        test = Entry('test')
        test.value = 'another word'
        assert test.getvalue() == 'another word'

    def test_delvalue(self):

# Path: config.py
# class Entry(object):
#     value = None
#     name = None
# 
#     def __init__(self, name, value=None):
#         self.name = name
#         self.value = value
# 
#     def setvalue(self, value):
#         self.value = value
# 
#     def getvalue(self, parent):
#         return self.value
# 
#     def delvalue(self):
#         del self.value
# 
#     def __unicode__(self):
#         return self.name + u" : " + unicode(self.value)
# 
#     def __str__(self):
#         return self.__unicode__()


# Path: test_entry.py
from unittest import TestCase
from config import Entry
import pytest


__author__ = 'faebser'


class TestEntry:

    def test_setvalue(self):
        test = Entry('test')
        test.setvalue('a word')
        assert test.value == 'a word'

    def test_getvalue(self):
        test = Entry('test')
        test.value = 'another word'
        assert test.getvalue() == 'another word'

    def test_delvalue(self):

        test = Entry('test')