@patch('littlechef.chef.solo.configure')
    @patch('littlechef.chef._get_ipaddress')
    @patch('littlechef.chef._synchronize_node')
    @patch('littlechef.chef._configure_node')
    @patch('littlechef.chef._node_cleanup')
    def test_sync_node(self, mock_method1, mock_ipaddress, mock_method3,
                       mock_method4, mock_method5):
        env.host_string = 'extranode'
        mock_ipaddress.return_value = False
        test_node = {'name': 'extranode', 'dummy': False, 'run_list': []}
        self.assertTrue(chef.sync_node(test_node))
Constructor.
dataset/ETHPy150Open tobami/littlechef/tests/test_lib.py/TestChef.test_sync_node--crossover with--dataset/ETHPy150Open google/grr/grr/lib/flows/cron/system.py/_ActiveCounter.__init__