source: geniuswebcore/test/geniusweb/inform/YourTurnTest.py@ 59

Last change on this file since 59 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 
1import unittest
2
3from pyson.ObjectMapper import ObjectMapper
4
5from geniusweb.inform.Inform import Inform
6from geniusweb.inform.YourTurn import YourTurn
7
8
9class 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.