def test_should_properly_get_config(self, logger, requests):
        client = NetconfServerClient('localhost')
        client.logger = logging.getLogger()

        client.get_config()

        requests.get.assert_called_with('http://localhost:8080/netconf/get')
    def test_should_raise_exception_when_module_is_absent_and_container_is_present(
            self, logger):
        client = NetconfServerClient('localhost')
        client.logger = logging.getLogger()

        with self.assertRaises(AttributeError) as context:  # pylint: disable=W0612
            client.get_config(container="test")
    def test_should_properly_get_config_for_given_module(
            self, logger, requests):
        client = NetconfServerClient('localhost')
        client.logger = logging.getLogger()

        client.get_config("module", "container")

        requests.get.assert_called_with(
            'http://localhost:8080/netconf/get/module/container')