예제 #1
0
def test_update_components():
    g = Gem(name='Reave')
    soup = g.souper()

    g.update_gem_icon(soup)
    assert g.gem_icon != ''

    g.update_req_lvl(soup)
    assert g.Lvl != ''

    g.update_attr(soup)
    assert g.strength is not None
    assert g.dexterity is not None
    assert g.intelligence is not None

    g.update_description(soup)
    assert g.description != ''