def assert_node_config(self, host, expected):
        node_properties_path = '/etc/presto/node.properties'
        self.assert_config_perms(host, node_properties_path)
        node_properties = self.cluster.exec_cmd_on_host(
            host, (node_properties_path,) % 'cat %s')
        split_properties = node_properties.split('\n', 1)
        self.assertRegexpMatches(split_properties[0], 'node.id=.*')
        actual = split_properties[1]
        if host in self.cluster.slaves:
            conf_dir = constants.COORDINATOR_DIR
        else:
            conf_dir = constants.WORKERS_DIR
        self.assertLazyMessage(
            lambda: self.file_content_message(actual, expected,
                                              os.path.join(conf_dir,
                                                           'node.properties')),
            self.assertEqual,
            actual,
            expected)
dataset/ETHPy150Open prestodb/presto-admin/tests/product/base_product_case.py/BaseProductTestCase.assert_node_config/swapped operands of `%`