summaryrefslogtreecommitdiff
path: root/test/test_polaris_stuff.py
blob: f3c8e6aeee3e2ac819d1af3a6a2d614cf301be6c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
#!/usr/bin/env python3
import sys
import os.path
sys.path.extend([
    os.path.realpath(
        os.path.join(os.path.dirname(os.path.join(__file__)), '..')
    )
])

import src.polaris as polaris


if __name__ == '__main__':
    sc = [cl for cl in polaris.protocol.CmdIncomingMessage.__subclasses__()
          if cl is not polaris.protocol.SimpleBooleanMessage]
    sc.extend(polaris.protocol.SimpleBooleanMessage.__subclasses__())
    for cl in sc:
        # if cl == polaris.protocol.HandshakeMessage:
        #     print('skip')
        #     continue
        print(cl.__name__, cl.TYPE)