def METHOD_NAME(self) -> None:
    connection = MysqlConnection(
        username="name",
        hostPort="hostPort",
    )
    get_connection_fn = import_connection_fn(
        connection=connection, function_name="get_connection"
    )
    self.assertIsNotNone(get_connection_fn)
    self.assertRaises(
        DynamicImportException,
        import_connection_fn,
        connection=connection,
        function_name="random",
    )