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' })
def test_args_kwargs_empty(): result = colors2() assert result == ((), {})
def test_args_kwargs(): result = colors2("Purple", link_color="Red", back_color="Blue") assert result == ((45, ), {"Link_Color": "Red", "Back_Color": "Blue"})
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'
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'
def test_key2(): colors = colors2(link_color='red', back_color='blue') assert colors[1]['link_color'] == 'red' assert colors[1]['back_color'] == 'blue'
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'})