Exemple #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'])
Exemple #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'])
Exemple #3
0
def student_grade():
    """Student \"grade\" setters work as expected"""
    check50_junit.run_and_interpret_test(
        classpaths=['tests/'],
        args=['--select-method', 'StudentTest#testGrades'])
Exemple #4
0
def professor_grade():
    """Professor \"TimeTable\" setters work as expected"""
    check50_junit.run_and_interpret_test(
        classpaths=['tests/'],
        args=['--select-method', 'ProfessorTest#testTimeTable'])
Exemple #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'])
Exemple #6
0
def lecturer_set_name():
    """Lecturer has name setter works"""
    check50_junit.run_and_interpret_test(
        classpaths=['tests/'],
        args=['--select-method', 'LecturerTest#testNameSet'])
Exemple #7
0
def professor_set_name():
    """Professor has name setter works"""
    check50_junit.run_and_interpret_test(
        classpaths=['tests/'],
        args=['--select-method', 'ProfessorTest#testNameSet'])
Exemple #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'])
Exemple #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'])
Exemple #10
0
def student_constructor_full():
    """Student constructor with all parameters"""
    check50_junit.run_and_interpret_test(
        classpaths=['tests/'],
        args=['--select-method', 'StudentTest#testFullConstructor'])
Exemple #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'])
Exemple #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'])
Exemple #13
0
def student_construction():
    """ Create student object successfully"""
    check50_junit.run_and_interpret_test(
        classpaths=['tests/'],
        args=['--select-method', 'StudentTest#testBlankConstructor'])
Exemple #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'])
Exemple #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'])
Exemple #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'])
Exemple #17
0
def caesar_main_exists():
    """Caesar.main exists"""
    check50_junit.run_and_interpret_test(
        classpaths=['tests/'],
        args=['--select-method', 'CaesarTest#mainExists'])
Exemple #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'])
Exemple #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'])
Exemple #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'])
Exemple #21
0
def professor_greet():
    """Professor \"greet\" method works as expected"""
    check50_junit.run_and_interpret_test(
        classpaths=['tests/'],
        args=['--select-method', 'ProfessorTest#testGreet'])
Exemple #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'])
Exemple #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'])
Exemple #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'])
Exemple #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'])
Exemple #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'])
Exemple #27
0
def student_greet():
    """Student \"greet\" method works as expected"""
    check50_junit.run_and_interpret_test(
        classpaths=['tests/'],
        args=['--select-method', 'StudentTest#testGreet'])
Exemple #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'])
Exemple #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'])
Exemple #30
0
def student_getBaseSubmitted():
    """base submitted getter"""
    check50_junit.run_and_interpret_test(
        classpaths=['tests/'],
        args=['--select-method', 'StudentTest#testGetBaseSubmitted'])