示例#1
0
def test_construct():
    try:
        EventSource(config=None, tool=None)
    except TypeError:
        return
    raise TypeError("EventSource should raise a TypeError when "
                    "instantiated due to its abstract methods")
示例#2
0
def test_construct():
    with pytest.raises(TypeError):
        EventSource()