recopytex/tests/model/test_student.py

10 lines
236 B
Python
Raw Normal View History

2022-12-20 05:59:35 +00:00
from backend.model.student import Student, Tribe
def test_tribe_register_student():
tribe = Tribe("foo", "2nd")
student = Student("1", "Bob", tribe)
assert len(tribe.students) == 1
assert tribe.students[0] == student