def format_path(file_path):
    """Converts from the default bash /directory/test.py format to directory.test
    format (as unittest only works with )

    Args: 
        file_path (String): The name of the file to be formatted. Should be in a 
        /.../..../test.py format.

    """

    no_py = file_path.replace(".py","")
    no_slash = no_py.replace("/",".")

    return no_slash