def test_post_permalink(client, silly_posts):
    today = datetime.date.today()
    rv = client.get('/{}/{:02d}/{}'.format(today.year, today.month,
                                           'first-interesting-article'))
    assert 200 == rv.status_code
    content = rv.get_data(as_text=True)
    assert 'fa-twitter' in content
    assert 'Something really thoughtful and interesting' in content
    assert re.search('<a[^>]*class="p-category"[^>]*>thoughtful', content)
dataset/ETHPy150Open kylewm/redwind/tests/views_test.py/test_post_permalink/original