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:
596 bytes
|
Rev | Line | |
---|
[59] | 1 | import unittest
|
---|
| 2 | from geniusweb.party.DefaultParty import DefaultParty
|
---|
| 3 | from geniusweb.party.Capabilities import Capabilities
|
---|
| 4 |
|
---|
| 5 | class 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 |
|
---|
| 17 | class DefaultPartyTest(unittest.TestCase):
|
---|
| 18 | def testSmoke(self):
|
---|
| 19 | MyParty()
|
---|
| 20 |
|
---|
| 21 | |
---|
Note:
See
TracBrowser
for help on using the repository browser.