Last change
on this file since 66 was 59, checked in by Wouter Pasman, 3 years ago |
#44 manual commit of first public release, because this will cause the dist directory to move
|
File size:
600 bytes
|
Line | |
---|
1 | import unittest
|
---|
2 |
|
---|
3 | from pyson.ObjectMapper import ObjectMapper
|
---|
4 |
|
---|
5 | from geniusweb.inform.Inform import Inform
|
---|
6 | from geniusweb.inform.YourTurn import YourTurn
|
---|
7 |
|
---|
8 |
|
---|
9 | class YourTurnTest(unittest.TestCase):
|
---|
10 |
|
---|
11 | pyson=ObjectMapper()
|
---|
12 | yourturn = YourTurn()
|
---|
13 | yourturnjson= {'YourTurn': {}}
|
---|
14 |
|
---|
15 |
|
---|
16 | def testSerializeDeserialize(self):
|
---|
17 |
|
---|
18 | print(str(self.pyson.toJson(self.yourturn)))
|
---|
19 | self.assertEqual(self.yourturnjson, self.pyson.toJson(self.yourturn))
|
---|
20 |
|
---|
21 | def testDeserialize(self):
|
---|
22 | self.assertEqual(self.yourturn, self.pyson.parse(self.yourturnjson, Inform))
|
---|
23 | |
---|
Note:
See
TracBrowser
for help on using the repository browser.