From 5146a1e62bf7a455fafe3c942347cf3b6a95aa34 Mon Sep 17 00:00:00 2001 From: Suleyman Poyraz Date: Sun, 4 Dec 2016 19:55:21 +0200 Subject: [PATCH] Create attributes.py --- tests/attibutes.py | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 tests/attibutes.py diff --git a/tests/attibutes.py b/tests/attibutes.py new file mode 100644 index 0000000..7b9add8 --- /dev/null +++ b/tests/attibutes.py @@ -0,0 +1,14 @@ +#!/usr/bin/env python + +import piksemel as iks + +doc_xml = '' + +doc = iks.newDocument("lala") +doc.setAttribute("a", "lala") +doc.setAttribute("b", "nanuk") +doc.setAttribute("b", "") +doc.setAttribute("a", None) +doc.setAttribute("c", "42") + +assert(doc.toString() == doc_xml) -- 2.18.1