def test_cfn_cluster_version(self): args = BaseArgs() pcluster.version(args) log = test_log_stream.getvalue() version_returned = re.match(r"^INFO:\w+\.\w+:(\d+\.\d+\.\d+.*)$", log).group(1) self.assertEqual(version_returned, version_on_file)
def version(args): version = pcluster.version() LOGGER.info(version)
def version(args): pcluster.version(args)