<reponame>kuya-ui/Password-Locker<filename>test_credentials.py
import unittest
from credentials import Credential
class TestCredential(unittest.TestCase):

    """
    Test class that defines test cases for the credential class behaviours,
    the arguments help in creating test cases.
    """

    def setUp(self):

        """
        this method runs before each test case, carries the instructions of what is to be done
        """

        self.new_password = Credential("max")

    def test_init(self):

        """
        used to test if the objects have been initialized properly
        """

        self.assertEqual(self.new_password.credential_detail,"max")



if __name__ == '__main__':
    unittest.main()
import unittest
from credentials import Credential
class TestCredential(unittest.TestCase):

    """
    Test class that defines test cases for the credential class behaviours,
    the arguments help in creating test cases.
    """

    def setUp(self):

        """
        this method runs before each test case, carries the instructions of what is to be done
        """

        self.new_password = Credential("max")

    def test_init(self):

        """
        used to test if the objects have been initialized properly
        """

        self.assertEqual(self.new_password.credential_detail,"max")



if __name__ == '__main__':
    unittest.main()
Test class that defines test cases for the credential class behaviours,     the arguments help in creating test cases. this method runs before each test case, carries the instructions of what is to be done used to test if the objects have been initialized properly