Last change
on this file since 89 was 89, checked in by Bart Vastenhouw, 3 years ago |
refactor to help reusing partiesserver
|
File size:
642 bytes
|
Line | |
---|
1 | import unittest
|
---|
2 | from geniusweb.party.DefaultParty import DefaultParty
|
---|
3 | from geniusweb.party.Capabilities import Capabilities
|
---|
4 | from geniusweb.inform.Inform import Inform
|
---|
5 |
|
---|
6 | class 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 |
|
---|
18 | class DefaultPartyTest(unittest.TestCase):
|
---|
19 | def testSmoke(self):
|
---|
20 | MyParty()
|
---|
21 |
|
---|
22 | |
---|
Note:
See
TracBrowser
for help on using the repository browser.