def test_ascendancy_repr_no_id():
    a = Session().query(Ascendancy).first()
    a.id = None
    template = '<Path of Exile Ascendancy: %s>' % (str(a))
    assert a.__repr__() == template
def test_class_repr_no_id():
    c = Session().query(PoEClass).first()
    c.id = None
    template = '<Path of Exile Class: %s>' % (str(c))
    assert c.__repr__() == template
def test_ascendancy_repr():
    a = Session().query(Ascendancy).first()
    template = '<Path of Exile Ascendancy %s: %s>' % (a.id, str(a))
    assert a.__repr__() == template
def test_class_repr():
    c = Session().query(PoEClass).first()
    template = '<Path of Exile Class %s: %s>' % (c.id, str(c))
    assert c.__repr__() == template