Correct escaping of list keys with single quotes

YANG 1.1 still uses XPath 1.0 which defines [1] strings in such a manner
that it is impossible to represent both single and double quotes in the
same string. That's why sysrepo chokes on such XPaths, for example.

Let's just ensure that anything which already contains an apostrophe (a
single quote) will be double-quoted instead of the default single-quoted
thingy.

Note that the parser itself treats all list keys as strings internally;
there's no validation, and the information about the underlying data
type is not preserved. That's why a numeric list key would be still
single-quoted in the current code.

[1] https://www.w3.org/TR/1999/REC-xpath-19991116/#exprlex

Change-Id: I87a2b88bb4f5d8f3383c1637088980c5a670aee3
diff --git a/tests/presence_containers.cpp b/tests/presence_containers.cpp
index 38bbfec..91dc234 100644
--- a/tests/presence_containers.cpp
+++ b/tests/presence_containers.cpp
@@ -80,6 +80,8 @@
         create_ create = boost::get<create_>(commandCreate);
         REQUIRE(create == expectedCreate);
 
+        REQUIRE(pathToDataString(create.m_path) == input);
+
         delete_ expectedDelete;
         expectedDelete.m_path = expectedPath;
         command_ commandDelete = parser.parseCommand("delete " + input, errorStream);