Beispiel #1
0
 def _callback(cmdset):
     pcmdset = PlayerCmdSet()
     pcmdset.at_cmdset_creation()
     pcmds = [cmd.key for cmd in pcmdset.commands
              ] + ["a", "b", "c", "d"] + ["out"]
     self.assertTrue(
         all(cmd.key or hasattr(cmd, "is_channel") in pcmds
             for cmd in cmdset.commands))
     self.assertTrue(
         any(hasattr(cmd, "is_channel") for cmd in cmdset.commands))
Beispiel #2
0
 def _callback(cmdset):
     pcmdset = PlayerCmdSet()
     pcmdset.at_cmdset_creation()
     pcmds = [cmd.key
              for cmd in pcmdset.commands] + ["a", "b", "c", "d"]
     self.assertTrue(all(cmd.key in pcmds for cmd in cmdset.commands))