def test_args_kwags():
    print("**********This test was RUN**********")
    result = colors2('purple', link_color='red', back_color='blue')

    assert result == (('purple', ), {
        'link_color': 'red',
        'back_color': 'blue'
    })
Exemple #2
0
def test_args_kwargs_empty():
    result = colors2()
    assert result == ((), {})
Exemple #3
0
def test_args_kwargs():
    result = colors2("Purple", link_color="Red", back_color="Blue")
    assert result == ((45, ), {"Link_Color": "Red", "Back_Color": "Blue"})
Exemple #4
0
def test_arbitrary2():
    regular = ('red', 'blue')
    links = {'link_color': 'chartreuse'}
    colors = colors2(*regular, **links)
    assert colors[0] == ('red', 'blue')
    assert colors[1].get('link_color') == 'chartreuse'
Exemple #5
0
def test_combo2():
    colors = colors2('purple', link_color='red', back_color='blue')
    assert colors[0][0] == 'purple'
    assert colors[1]['link_color'] == 'red'
    assert colors[1]['back_color'] == 'blue'
Exemple #6
0
def test_key2():
    colors = colors2(link_color='red', back_color='blue')
    assert colors[1]['link_color'] == 'red'
    assert colors[1]['back_color'] == 'blue'
Exemple #7
0
def test_pos2():
    colors = colors2('red', 'blue', 'yellow', 'chartreuse')
    assert colors[0] == ('red', 'blue', 'yellow', 'chartreuse')
def test_args_kwargs():
    result = colors2(link_color='red', back_color='blue')

    assert result == ((), {'link_color': 'red', 'back_color': 'blue'})