예제 #1
0
def student_total_grade_single_assignment():
    """getTotalGrade() with a single assignment"""
    check50_junit.run_and_interpret_test(
        classpaths=['tests/'],
        args=['--select-method', 'StudentTest#testUpdateFirstGrade'])
예제 #2
0
def student_set_name(student_compiles):
    """Student has name setter works"""
    check50_junit.run_and_interpret_test(
        classpaths=['tests/'],
        args=['--select-method', 'StudentTest#testNameSet'])
예제 #3
0
def student_grade():
    """Student \"grade\" setters work as expected"""
    check50_junit.run_and_interpret_test(
        classpaths=['tests/'],
        args=['--select-method', 'StudentTest#testGrades'])
예제 #4
0
def professor_grade():
    """Professor \"TimeTable\" setters work as expected"""
    check50_junit.run_and_interpret_test(
        classpaths=['tests/'],
        args=['--select-method', 'ProfessorTest#testTimeTable'])
예제 #5
0
def person_has_greet_is_public():
    """Person has a working \"greet\""""
    check50_junit.run_and_interpret_test(
        classpaths=['tests/'],
        args=['--select-method', 'PersonTest#testGreet'])
예제 #6
0
def lecturer_set_name():
    """Lecturer has name setter works"""
    check50_junit.run_and_interpret_test(
        classpaths=['tests/'],
        args=['--select-method', 'LecturerTest#testNameSet'])
예제 #7
0
def professor_set_name():
    """Professor has name setter works"""
    check50_junit.run_and_interpret_test(
        classpaths=['tests/'],
        args=['--select-method', 'ProfessorTest#testNameSet'])
예제 #8
0
def student_constructor_partial_3():
    """Student constructor with some parameters in a different format with different details"""
    check50_junit.run_and_interpret_test(
        classpaths=['tests/'],
        args=['--select-method', 'StudentTest#testPartialConstructor3'])
예제 #9
0
def brutus_has_frequency_is_public():
    """Brutus has a public static method called \"frequency\""""
    check50_junit.run_and_interpret_test(
        classpaths=['tests/'],
        args=['--select-method', 'BrutusTest#frequencyExists'])
예제 #10
0
def student_constructor_full():
    """Student constructor with all parameters"""
    check50_junit.run_and_interpret_test(
        classpaths=['tests/'],
        args=['--select-method', 'StudentTest#testFullConstructor'])
예제 #11
0
def student_constructor_partial_1():
    """Student constructor with some parameters"""
    check50_junit.run_and_interpret_test(
        classpaths=['tests/'],
        args=['--select-method', 'StudentTest#testPartialConstructor1'])
예제 #12
0
def student_getName():
    """ Ensure that the student getGrade() method is working properly"""
    check50_junit.run_and_interpret_test(
        classpaths=['tests/'],
        args=['--select-method', 'StudentTest#testGetGrade'])
예제 #13
0
def student_construction():
    """ Create student object successfully"""
    check50_junit.run_and_interpret_test(
        classpaths=['tests/'],
        args=['--select-method', 'StudentTest#testBlankConstructor'])
예제 #14
0
def student_total_grade_multiple_assignment():
    """getTotalGrade() with a multiple assignment"""
    check50_junit.run_and_interpret_test(
        classpaths=['tests/'],
        args=['--select-method', 'StudentTest#testGetTotalGrades'])
예제 #15
0
def caesar_rotate_string_signature():
    """Caesar.rotate(int,String) is public static"""
    check50_junit.run_and_interpret_test(
        classpaths=['tests/'],
        args=['--select-method', 'CaesarTest#rotateStringSignatureCorrect'])
예제 #16
0
def brutus_has_frequency_signature():
    """Brutus \"frequency\" has right signature"""
    check50_junit.run_and_interpret_test(
        classpaths=['tests/'],
        args=['--select-method', 'BrutusTest#frequencySignatureCorrect'])
예제 #17
0
def caesar_main_exists():
    """Caesar.main exists"""
    check50_junit.run_and_interpret_test(
        classpaths=['tests/'],
        args=['--select-method', 'CaesarTest#mainExists'])
예제 #18
0
def brutus_has_chi_is_public():
    """Brutus has a public static method called \"chiSquared\""""
    check50_junit.run_and_interpret_test(
        classpaths=['tests/'],
        args=['--select-method', 'BrutusTest#chiExists'])
예제 #19
0
def professor_is_lecturer():
    """Professor is an instance of \"Lecturer\""""
    check50_junit.run_and_interpret_test(
        classpaths=['tests/'],
        args=['--select-method', 'ProfessorTest#testInheritedLecturer'])
예제 #20
0
def brutus_has_chi_signature():
    """Brutus \"chiSquared\" has right signature"""
    check50_junit.run_and_interpret_test(
        classpaths=['tests/'],
        args=['--select-method', 'BrutusTest#chiSignatureCorrect'])
예제 #21
0
def professor_greet():
    """Professor \"greet\" method works as expected"""
    check50_junit.run_and_interpret_test(
        classpaths=['tests/'],
        args=['--select-method', 'ProfessorTest#testGreet'])
예제 #22
0
def brutus_main_exists():
    """Brutus has a public static method called \"main\""""
    check50_junit.run_and_interpret_test(
        classpaths=['tests/'],
        args=['--select-method', 'BrutusTest#mainExists'])
예제 #23
0
def person_has_greet_is_public():
    """Person has a public attribute called \"greet\""""
    check50_junit.run_and_interpret_test(
        classpaths=['tests/'],
        args=['--select-method', 'PersonTest#testGreetIsPublic'])
예제 #24
0
def caesar_rotate_char_exists():
    """Caesar.rotate(int,char) exists"""
    check50_junit.run_and_interpret_test(
        classpaths=['tests/'],
        args=['--select-method', 'CaesarTest#rotateCharExists'])
예제 #25
0
def student_is_person():
    """Student is an instance of \"Person\""""
    check50_junit.run_and_interpret_test(
        classpaths=['tests/'],
        args=['--select-method', 'StudentTest#testInheritedPerson'])
예제 #26
0
def caesar_rotate_char_is_public_static():
    """Caesar.rotate(int,char) is public static"""
    check50_junit.run_and_interpret_test(
        classpaths=['tests/'],
        args=['--select-method', 'CaesarTest#rotateCharSignatureCorrect'])
예제 #27
0
def student_greet():
    """Student \"greet\" method works as expected"""
    check50_junit.run_and_interpret_test(
        classpaths=['tests/'],
        args=['--select-method', 'StudentTest#testGreet'])
예제 #28
0
def caesar_rotate_lower_shift_19():
    """trying out Caesar(int,char) on "abc...z" with a shift 19"""
    check50_junit.run_and_interpret_test(
        classpaths=['tests/'],
        args=['--select-method', 'CaesarTest#testLowerCharShiftNineteen'])
예제 #29
0
def lecturer_is_person():
    """Lecturer is an instance of \"Person\""""
    check50_junit.run_and_interpret_test(
        classpaths=['tests/'],
        args=['--select-method', 'LecturerTest#testInheritedPerson'])
예제 #30
0
def student_getBaseSubmitted():
    """base submitted getter"""
    check50_junit.run_and_interpret_test(
        classpaths=['tests/'],
        args=['--select-method', 'StudentTest#testGetBaseSubmitted'])