'Test that created\'s link inverts order if already sorting by created.'

def test_sort_invert_created(self):

    link = create_sort_link('Waiting    Time', 'created', [('text_query', 'guybrush')], 'created', 'asc')
    assert ('sort=created' in link)
    assert ('order=desc' in link)
    assert ('text_query=guybrush' in link)
    link = create_sort_link('Waiting    Time', 'created', [], 'created', 'desc')
    assert ('order=asc' in link)
