def test_create_post(client, auth, mocker):
    """Create a simple post as the current user"""
    mocker.patch('requests.get').return_value = FakeResponse()
    mocker.patch('redwind.tasks.create_queue')
    rv = client.post('/save_new', data={
        'post_type': 'note',
        'content': 'This is a test note',
        'action': 'publish_quietly',
    })
    assert 302 == rv.status_code
    assert re.match('.*/\d+/\d+/this-is-a-test-note$', rv.location)
    # follow the redirect
    rv = client.get(rv.location)
    assert rv.get_data(as_text=True) in 'This is a test note'
dataset/ETHPy150Open kylewm/redwind/tests/views_test.py/test_create_post/swapped operands of `in`