def test_disconnect_one(timer):
 func = mock.Mock()
 timer.timeout.connect(func)
 timer.timeout.disconnect(func)
 timer.timeout.emit()
 assert (not func.called)

def test_disconnect_one ( timer ) : func = mock . Mock ( ) timer . timeout . connect ( func ) timer . timeout . disconnect ( func ) timer . timeout . emit ( ) assert ( not func . called )
test disconnect with a single argument .