import unittest
from EarnClass import Employee
class TestGive(unittest.TestCase):
def setUp(self):
self.data = Employee('x', 'y', 'z')
def test_give_default(self):
#"""xxxx"""
self.assertEqual(self.dane, 'x y z')
Output:
AssertionError:<EarnClass.Employee object at 0x027EA290> != 'x y z'