def test_agentchannelkind(string, string_twin): """ This test aims to cover basic AgentChannelKind operations: initialization, equivalence and basic methods. """ # Initialization and equivalence kind = AgentChannelKind(string) assert kind == string assert kind == AgentChannelKind(kind) # Basic methods assert isinstance(kind.twin(), AgentChannelKind) assert kind.twin() == string_twin
def test_agentchannelkind_value_error(): """ Creating an AgentChannelKind with a wrong value should result in an exception being raised. """ # Value error exceptions with pytest.raises(ValueError): AgentChannelKind('FOO')