# nametest2.py

"""Unit tests for name"""

import name
import testcase

def test_last_name_first():
    """Calls all the tests for last_name_first"""
    print('Testing function last_name_first')
    # Test 1
    result = name.last_name_first('Katherine Johnson')
    testcase.assert_equals('Johnson, Katherine', result)
    # Test 2
    result = name.last_name_first('Katherine     Johnson')
    testcase.assert_equals('Johnson, Katherine', result)

# Execution of the testing code
test_last_name_first()
print('All tests of the function last_name_first passed')
