def METHOD_NAME(self):
    with support.change_cwd(self.directory):
        py_compile.compile(os.path.basename(self.source_path),
                           os.path.basename(self.pyc_path))
    self.assertTrue(os.path.exists(self.pyc_path))
    self.assertFalse(os.path.exists(self.cache_path))