コード例 #1
0
def test_equal():
    assert Instrument.from_l18('فملی') == Instrument(35425587644337450)
コード例 #2
0
def test_repr():
    # known ID
    assert repr(Instrument.from_l18('فملی')) == "Instrument('فملی')"
    # unknown ID
    assert repr(Instrument(1)) == "Instrument(1)"