Fork me on GitHub

If I do testing with luminus, as per the example in, and I test a POST end-point, the POST will require a csrf token, as it should. What is the preferred way of getting this in a test scenario? I could get it from the initial page, as in a production scenario, but is there a more straight forward way I'm missing?