def test_foo_say2(): assert Foo().say2() == 'foo2'
def test_foo_say_typeerror(): with pytest.raises(TypeError): Foo().say(12)