mirror of
https://github.com/shlomif/PySolFC.git
synced 2025-04-05 00:02:29 -04:00
start writing the kpat emitter.
This commit is contained in:
parent
70123aaa5d
commit
8244d19e6e
2 changed files with 8 additions and 0 deletions
|
@ -66,3 +66,8 @@ class KpatXmlEmitter:
|
|||
|
||||
def writeInitialLayout(self, state, turn_cb):
|
||||
assert False # unimpl
|
||||
|
||||
class KpatEmitter:
|
||||
"""docstring for KpatEmitter"""
|
||||
def __init__(self, f):
|
||||
self.f = f
|
||||
|
|
|
@ -3,6 +3,7 @@ import unittest
|
|||
|
||||
from pysollib.acard import AbstractCard
|
||||
from pysollib.kpat_load_save import KpatXmlEmitter
|
||||
from pysollib.kpat_load_save import KpatEmitter
|
||||
|
||||
from six.moves import cStringIO
|
||||
|
||||
|
@ -83,3 +84,5 @@ class MyTests(unittest.TestCase):
|
|||
+ "<card id=\"1004\" suit=\"hearts\" " +
|
||||
"rank=\"queen\" turn=\"face-up\"/>\n"
|
||||
)
|
||||
e = KpatEmitter(f)
|
||||
self.assertTrue(e)
|
||||
|
|
Loading…
Add table
Reference in a new issue