2021-02-22 18:04:23 +00:00
|
|
|
import unittest
|
2015-12-20 10:26:30 +00:00
|
|
|
|
2021-02-22 18:02:13 +00:00
|
|
|
|
2015-12-20 12:12:54 +00:00
|
|
|
class NotImplementedByController(unittest.SkipTest, NotImplementedError):
|
2021-02-28 16:08:27 +00:00
|
|
|
def __str__(self) -> str:
|
2021-02-22 18:02:13 +00:00
|
|
|
return "Not implemented by controller: {}".format(self.args[0])
|
|
|
|
|
2015-12-20 10:43:55 +00:00
|
|
|
|
2015-12-22 00:56:01 +00:00
|
|
|
class ImplementationChoice(unittest.SkipTest):
|
2021-02-28 16:08:27 +00:00
|
|
|
def __str__(self) -> str:
|
2021-02-22 18:02:13 +00:00
|
|
|
return (
|
|
|
|
"Choice in the implementation makes it impossible to "
|
|
|
|
"perform a test: {}".format(self.args[0])
|
|
|
|
)
|
|
|
|
|
2015-12-22 00:56:01 +00:00
|
|
|
|
2022-01-10 22:55:24 +00:00
|
|
|
class OptionalCommandNotSupported(unittest.SkipTest):
|
|
|
|
def __str__(self) -> str:
|
|
|
|
return "Unsupported command: {}".format(self.args[0])
|
|
|
|
|
|
|
|
|
2015-12-20 10:26:30 +00:00
|
|
|
class OptionalExtensionNotSupported(unittest.SkipTest):
|
2021-02-28 16:08:27 +00:00
|
|
|
def __str__(self) -> str:
|
2021-02-22 18:02:13 +00:00
|
|
|
return "Unsupported extension: {}".format(self.args[0])
|
|
|
|
|
2015-12-20 10:26:30 +00:00
|
|
|
|
|
|
|
class OptionalSaslMechanismNotSupported(unittest.SkipTest):
|
2021-02-28 16:08:27 +00:00
|
|
|
def __str__(self) -> str:
|
2021-02-22 18:02:13 +00:00
|
|
|
return "Unsupported SASL mechanism: {}".format(self.args[0])
|
|
|
|
|
2015-12-20 10:26:30 +00:00
|
|
|
|
2019-12-08 20:26:21 +00:00
|
|
|
class CapabilityNotSupported(unittest.SkipTest):
|
2021-02-28 16:08:27 +00:00
|
|
|
def __str__(self) -> str:
|
2021-02-22 18:02:13 +00:00
|
|
|
return "Unsupported capability: {}".format(self.args[0])
|
|
|
|
|
2019-12-08 20:26:21 +00:00
|
|
|
|
2021-02-27 09:36:30 +00:00
|
|
|
class IsupportTokenNotSupported(unittest.SkipTest):
|
2021-02-28 16:08:27 +00:00
|
|
|
def __str__(self) -> str:
|
2021-02-27 09:36:30 +00:00
|
|
|
return "Unsupported ISUPPORT token: {}".format(self.args[0])
|
|
|
|
|
|
|
|
|
2021-02-26 23:21:23 +00:00
|
|
|
class ChannelModeNotSupported(unittest.SkipTest):
|
2021-02-28 16:08:27 +00:00
|
|
|
def __str__(self) -> str:
|
2021-02-26 23:21:23 +00:00
|
|
|
return "Unsupported channel mode: {} ({})".format(self.args[0], self.args[1])
|
|
|
|
|
|
|
|
|
|
|
|
class ExtbanNotSupported(unittest.SkipTest):
|
2021-02-28 16:08:27 +00:00
|
|
|
def __str__(self) -> str:
|
2021-02-26 23:21:23 +00:00
|
|
|
return "Unsupported extban: {} ({})".format(self.args[0], self.args[1])
|
|
|
|
|
|
|
|
|
2015-12-22 18:55:48 +00:00
|
|
|
class NotRequiredBySpecifications(unittest.SkipTest):
|
2021-02-28 16:08:27 +00:00
|
|
|
def __str__(self) -> str:
|
2021-02-22 18:02:13 +00:00
|
|
|
return "Tests not required by the set of tested specification(s)."
|
|
|
|
|
2015-12-22 18:55:48 +00:00
|
|
|
|
2015-12-23 18:39:34 +00:00
|
|
|
class SkipStrictTest(unittest.SkipTest):
|
2021-02-28 16:08:27 +00:00
|
|
|
def __str__(self) -> str:
|
2021-02-22 18:02:13 +00:00
|
|
|
return "Tests not required because strict tests are disabled."
|