Beispiel #1
0
def test_sort_forbidden(app):
    l1 = lambda: None
    l2 = lambda: None
    l3 = lambda: None
    signal = Signal(app)
    signal.extend([l1, l2, l3])
    with pytest.raises(NotImplementedError):
        signal.sort()
    assert signal == [l1, l2, l3]
Beispiel #2
0
def test_sort_forbidden(app):
    def l1():
        pass

    def l2():
        pass

    def l3():
        pass

    signal = Signal(app)
    signal.extend([l1, l2, l3])
    with pytest.raises(NotImplementedError):
        signal.sort()
    assert signal == [l1, l2, l3]
Beispiel #3
0
def test_sort_forbidden(app):
    def l1():
        pass

    def l2():
        pass

    def l3():
        pass

    signal = Signal(app)
    signal.extend([l1, l2, l3])
    with pytest.raises(NotImplementedError):
        signal.sort()
    assert signal == [l1, l2, l3]