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

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