def test_groupdisposable_add():
    d1 = Disposable.empty()
    d2 = Disposable.empty()

    g = CompositeDisposable(d1)
    
    assert g.length == 1
    assert g.contains(d1)
    g.add(d2)
    assert g.length == 2
    assert g.contains(d2)
dataset/ETHPy150Open ReactiveX/RxPY/tests/test_disposables/test_disposable.py/test_groupdisposable_add/original