def METHOD_NAME(self):
    with temporary_dir() as path:
        touch("package.xml")
        task = create_task(
            Deploy,
            {
                "path": path,
                "test_level": "RunSpecifiedTests",
                "specified_tests": "TestA,TestB",
                "unmanaged": False,
            },
        )
        api = task._get_api()
        assert api.run_tests == ["TestA", "TestB"]
        assert api.test_level == "RunSpecifiedTests"