Beispiel #1
0
    def testStudent(self):
        who = Student()

        who.setStudentID(1)
        who.setStudentName("Decebal")
        who.setStudentGroup("Dacia")

        assert who.getStudentID() == 1
        assert who.getStudentName() == "Decebal"
        assert who.getStudentGroup() == "Dacia"
Beispiel #2
0
    def testStudent(self):
        """
            Method tests the Student class.
        """
        who = Student(666)

        who.setStudentID(1)
        who.setStudentName("Decebal")
        who.setStudentGroup("Dacia")

        assert who.getStudentID() == 1
        assert who.getStudentName() == "Decebal"
        assert who.getStudentGroup() == "Dacia"