Пример #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()