def test_trace_record_account_number_invalid_bad_character(): all_lines = (' ' * 87 + ' x23456', ) assert trace_record_account_number(all_lines, 0) is not None
def test_trace_record_account_number_invalid_all_zeroes(): all_lines = (' ' * 87 + '0' * 9, ) assert trace_record_account_number(all_lines, 0) is not None
def test_trace_record_account_number_invalid_left_justified(): all_lines = (' ' * 87 + '123456 ', ) assert trace_record_account_number(all_lines, 0) is not None
def test_trace_record_account_number_valid_employee_benefits_card(): all_lines = (' ' * 87 + ' 999999', ) # for employee benefits card transactions, account number must be '999999' assert trace_record_account_number(all_lines, 0) is None
def test_trace_record_account_number_valid_blank(): all_lines = (' ' * 87 + ' ' * 9, ) # for credit card transactions the account number can be blank assert trace_record_account_number(all_lines, 0) is None
def test_trace_record_account_number_valid_nine_digits(): all_lines = (' ' * 87 + '123456789', ) assert trace_record_account_number(all_lines, 0) is None
def test_trace_record_account_number_valid_eight_digits_with_hyphen(): all_lines = (' ' * 87 + '1234-5678', ) assert trace_record_account_number(all_lines, 0) is None