Exemplo n.º 1
0
def test_get_by_id_when_exists_returns_tech():
    t = tech.get_by_id('tech-siege-01')

    expect(t).to.be.a.tuple()
    expect(t.id).to.eq('tech-siege-01')
    expect(t.name).to.eq('None')
Exemplo n.º 2
0
def test_get_by_id_when_invalid_id_returns_None():
    t = tech.get_by_id(5)

    expect(t).to.be.none()
Exemplo n.º 3
0
def test_get_by_id_when_not_exists_returns_None():
    t = tech.get_by_id('tech-noexist')

    expect(t).to.be.none()
Exemplo n.º 4
0
def test_get_by_id_when_exists_returns_tech():
    t = tech.get_by_id('tech-siege-01')

    expect(t).to.be.a.tuple()
    expect(t.id).to.eq('tech-siege-01')
    expect(t.name).to.eq('None')
Exemplo n.º 5
0
def test_get_by_id_when_invalid_id_returns_None():
    t = tech.get_by_id(5)

    expect(t).to.be.none()
Exemplo n.º 6
0
def test_get_by_id_when_not_exists_returns_None():
    t = tech.get_by_id('tech-noexist')

    expect(t).to.be.none()