Esempio n. 1
0
def test_use_sevens(make_poem, add):
    make_poem.return_value = ['one', 'two', 'three']
    poem = poems.use(7, 'foo')
    assert poem[1] == 'foo'
Esempio n. 2
0
def test_use_sevens_tanka(make_poem, add):
    make_poem.return_value = ['one', 'two', 'three', 'four', 'five']
    poem = poems.use(7, 'foo', poem_type='tanka')
    assert 'foo' in (poem[1], poem[3], poem[4])
Esempio n. 3
0
def test_use_fives_tanka(make_poem, add):
    make_poem.return_value = ['one', 'two', 'three', 'four', 'five']
    poem = poems.use(5, 'foo', poem_type='tanka')
    assert 'foo' in (poem[0], poem[2])
Esempio n. 4
0
def test_use_fives_does_not_duplicate(make_poem, add):
    make_poem.return_value = ['foo', 'two', 'three']
    poem = poems.use(5, 'foo')
    assert poem[0] == 'foo'
    assert poem[2] != 'foo'
Esempio n. 5
0
def test_use_sevens_tanka(make_poem, add):
    make_poem.return_value = ['one', 'two', 'three', 'four', 'five']
    poem = poems.use(7, 'foo', poem_type='tanka')
    assert 'foo' in (poem[1], poem[3], poem[4])
Esempio n. 6
0
def test_use_fives(make_poem, add):
    make_poem.return_value = ['one', 'two', 'three']
    poem = poems.use(5, 'foo')
    assert 'foo' in (poem[0], poem[2])
Esempio n. 7
0
def test_use_fives_does_not_duplicate(make_poem, add):
    make_poem.return_value = ['foo', 'two', 'three']
    poem = poems.use(5, 'foo')
    assert poem[0] == 'foo'
    assert poem[2] != 'foo'
Esempio n. 8
0
def test_use_sevens(make_poem, add):
    make_poem.return_value = ['one', 'two', 'three']
    poem = poems.use(7, 'foo')
    assert poem[1] == 'foo'
Esempio n. 9
0
def test_use_fives(make_poem, add):
    make_poem.return_value = ['one', 'two', 'three']
    poem = poems.use(5, 'foo')
    assert 'foo' in (poem[0], poem[2])
Esempio n. 10
0
def test_use_fives_tanka(make_poem, add):
    make_poem.return_value = ['one', 'two', 'three', 'four', 'five']
    poem = poems.use(5, 'foo', poem_type='tanka')
    assert 'foo' in (poem[0], poem[2])
Esempio n. 11
0
def test_use_sevens(make_poem, add):
    make_poem.return_value = ["one", "two", "three"]
    poem = poems.use(7, "foo")
    assert poem[1] == "foo"
Esempio n. 12
0
def test_use_fives_does_not_duplicate(make_poem, add):
    make_poem.return_value = ["foo", "two", "three"]
    poem = poems.use(5, "foo")
    assert poem[0] == "foo"
    assert poem[2] != "foo"
Esempio n. 13
0
def test_use_fives_tanka(make_poem, add):
    make_poem.return_value = ["one", "two", "three", "four", "five"]
    poem = poems.use(5, "foo", poem_type="tanka")
    assert "foo" in (poem[0], poem[2])
Esempio n. 14
0
def test_use_fives(make_poem, add):
    make_poem.return_value = ["one", "two", "three"]
    poem = poems.use(5, "foo")
    assert "foo" in (poem[0], poem[2])
Esempio n. 15
0
def test_use_sevens_tanka(make_poem, add):
    make_poem.return_value = ["one", "two", "three", "four", "five"]
    poem = poems.use(7, "foo", poem_type="tanka")
    assert "foo" in (poem[1], poem[3], poem[4])