'Performs spot checks of the rendered register.html page.
When we display the new account registration form after the user signs
in with a third party, we prepopulate the form with values sent back
from the provider. The exact set of values varies on a provider-by-
provider basis and is generated by
provider.BaseProvider.get_register_form_data. We provide some stock
assertions based on the provider\'s implementation; if you want more
assertions in your test, override this method.'

def assert_register_response_in_pipeline_looks_correct(self, response, pipeline_kwargs, required_fields):

    self.assertEqual(200, response.status_code)
    self.assertIn(('successfully    signed    in    with    <strong>%s</strong>' % self.provider.name), response.content)
    form_field_data = self.provider.get_register_form_data(pipeline_kwargs)
    for prepopulated_form_data in form_field_data:
        if (prepopulated_form_data in required_fields):
            self.assertIn(form_field_data[prepopulated_form_data], response.content.decode('utf-8'))
