def save(self, doc):
        if doc.id:
            return self.update(doc)
        else:
            return self.insert(doc)
def test_should_encode_empty_string(self):
        encoded = cypher_repr(u"")
        assert encoded == u"''"