Ejemplo n.º 1
0
    def testStudentisValid(self):
        st = Student("5", "", "123")
        assert st.isValid() == False

        st = Student("", "Ionescu", "135")
        assert st.isValid() == False

        st = Student("52", "Ionescu", "134")
        assert st.isValid() == True
Ejemplo n.º 2
0
 def testIsValid(self):
     st = Student('15', 'marie', '123')
     assert st.isValid() == True