Beispiel #1
0
def test_irc_nickname_garbage(garbage, rescue_plain_fx: Rescue):
    """
    Verifies throwing garbage types at Rescue.irc_nickname results in a TypeError

       Args:
            garbage (): Garbage to throw
            rescue_plain_fx (Rescue): Plain rescue Fixture
    """
    with pytest.raises(TypeError):
        rescue_plain_fx.irc_nickname = garbage
Beispiel #2
0
def test_irc_nickname_strings(test_input, rescue_plain_fx: Rescue):
    """
    Verifies the irc nickname can be set when passed a string

        Args:
            test_input (str): values to test
            rescue_plain_fx (Rescue): Rescue fixture

    """

    rescue_plain_fx.irc_nickname = test_input
    assert rescue_plain_fx.irc_nickname == test_input