예제 #1
0
파일: test_class.py 프로젝트: OlgaCh/ftl
def students():
    yield [
        Student('Jimmy', 'Morris'),
        Student('Miranda', 'Kerr'),
        Student('Candice', 'Swanepoel'),
        Student('James', 'Bond')
    ]
예제 #2
0
파일: test_class.py 프로젝트: OlgaCh/ftl
def test_class_accept_new_student(math_class):
    old_students_count = math_class.get_total_students()
    s = Student('Peter', 'Thompson')
    math_class.add_student(s)
    assert math_class.get_total_students() == old_students_count + 1
예제 #3
0
파일: test_class.py 프로젝트: OlgaCh/ftl
def another_students():
    yield [
        Student('Jim', 'Carrey'),
        Student('James', 'Bond'),
        Student('Donald', 'Duck')
    ]
예제 #4
0
def student():
    yield Student('Jane', 'Doe')
예제 #5
0
def student_3():
    yield Student('Donald', 'Duck')
예제 #6
0
def student_2():
    yield Student('James', 'Bond')
예제 #7
0
def test_new_student_has_no_assignments(name='Mary', last_name='Jane'):
    s = Student(name, last_name)
    assert len(s.assignments) == 0