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

Last change on this file since 77 was 73, checked in by Bart Vastenhouw, 3 years ago

Fix for IssueValue hashcode.

File size: 681 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:dict= {'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
24 def testrepr(self):
25 self.assertEqual(repr(self.yourturn),"YourTurn")
Note: See TracBrowser for help on using the repository browser.