mirror of
https://github.com/shlomif/PySolFC.git
synced 2025-04-05 00:02:29 -04:00
rename
This commit is contained in:
parent
aa1907a567
commit
494a52a04b
2 changed files with 5 additions and 5 deletions
|
@ -11,8 +11,8 @@
|
||||||
"""
|
"""
|
||||||
|
|
||||||
|
|
||||||
class KpatEmitter:
|
class KpatXmlEmitter:
|
||||||
"""docstring for KpatEmitter"""
|
"""docstring for KpatXmlEmitter"""
|
||||||
def _ind_out(self, text):
|
def _ind_out(self, text):
|
||||||
"""docstring for _out"""
|
"""docstring for _out"""
|
||||||
self._out("\t" * self._indent)
|
self._out("\t" * self._indent)
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
# Written by Shlomi Fish, under the MIT Expat License.
|
# Written by Shlomi Fish, under the MIT Expat License.
|
||||||
import unittest
|
import unittest
|
||||||
|
|
||||||
from pysollib.kpat_load_save import KpatEmitter
|
from pysollib.kpat_load_save import KpatXmlEmitter
|
||||||
|
|
||||||
from six.moves import cStringIO
|
from six.moves import cStringIO
|
||||||
|
|
||||||
|
@ -9,7 +9,7 @@ from six.moves import cStringIO
|
||||||
class MyTests(unittest.TestCase):
|
class MyTests(unittest.TestCase):
|
||||||
def test_emitter(self):
|
def test_emitter(self):
|
||||||
f = cStringIO()
|
f = cStringIO()
|
||||||
e = KpatEmitter(f)
|
e = KpatXmlEmitter(f)
|
||||||
self.assertTrue(e)
|
self.assertTrue(e)
|
||||||
e.writeEmptyTag("foo", [("one", "val1"), ("two", "val2")])
|
e.writeEmptyTag("foo", [("one", "val1"), ("two", "val2")])
|
||||||
self.assertEqual(
|
self.assertEqual(
|
||||||
|
@ -17,7 +17,7 @@ class MyTests(unittest.TestCase):
|
||||||
"<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n"
|
"<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n"
|
||||||
+ "<foo one=\"val1\" two=\"val2\"/>\n")
|
+ "<foo one=\"val1\" two=\"val2\"/>\n")
|
||||||
f = cStringIO()
|
f = cStringIO()
|
||||||
e = KpatEmitter(f)
|
e = KpatXmlEmitter(f)
|
||||||
self.assertTrue(e)
|
self.assertTrue(e)
|
||||||
e.writeStartTag("foo", [("one", "val1"), ("two", "val2")])
|
e.writeStartTag("foo", [("one", "val1"), ("two", "val2")])
|
||||||
e.writeEmptyTag("flutter", [])
|
e.writeEmptyTag("flutter", [])
|
||||||
|
|
Loading…
Add table
Reference in a new issue