HTTPretty may help with this. It will let you mock a response from the second server: https://github.com/gabrielfalcao/httpretty
_Nik On 1/4/2016 2:49:34 PM, Michal Petrucha <[email protected]> wrote: Hi folks, I'd like to write some tests for a simple redirect-based SSO solution, in which there's one instance of an app responsible for authentication, and all other instances redirect new sessionless users to it, and then expect a redirect callback. Kind of like a simplified version of OAuth in which there's no need for the relying party to make a background request to the identity provider, since the provider and the relying party share the same database. Each instance has its own settings, SITE_ID and such. I was thinking about using Selenium with LiveServerTestCase for this; however, I'd need to have both the provider and the relying instance listening at the same time. Is there a simple mechanism to have LiveServerTestCase run two separate server threads with different settings? Is there some kind of third-party testing package that can do that? Cheers, and have a happy New Year. Michal -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. Visit this group at https://groups.google.com/group/django-users. To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/20160104224904.GA20308%40koniiiik.org. For more options, visit https://groups.google.com/d/optout. -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. Visit this group at https://groups.google.com/group/django-users. To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/d9f6f506-0fdc-4a92-aa8e-385d486635f8%40getmailbird.com. For more options, visit https://groups.google.com/d/optout.

