source: geniuswebcore/test/geniusweb/party/DefaultPartyTest.py@ 88

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

Added python SimpleRunner GUI

File size: 642 bytes
Line 
1import unittest
2from geniusweb.party.DefaultParty import DefaultParty
3from geniusweb.party.Capabilities import Capabilities
4from geniusweb.inform.Inform import Inform
5
6class MyParty(DefaultParty):
7 def getCapabilities(self) -> Capabilities:
8 return Capabilities(set(["SAOP"]), set(["geniusweb.profile.Profile"]) )
9
10 def getDescription(self) -> str:
11 return "blabla"
12
13 def notifyChange(self, data:Inform):
14 # you'd think the type checker would complain here. data is NOT int
15 return
16
17
18class DefaultPartyTest(unittest.TestCase):
19 def testSmoke(self):
20 MyParty()
21
22
Note: See TracBrowser for help on using the repository browser.