'Test the setup_request functionality in the NGP VAN backend'

def test_setup_request(self):

    (_, inputs) = self.get_form_data(self.backend.auth_html())
    self.assertEqual(inputs['openid.ax.required'], 'ngpvanemail')
    self.assertIn('ngpvanphone', inputs['openid.ax.if_available'])
    self.assertIn('ngpvanfirstname', inputs['openid.ax.if_available'])
    self.assertIn('ngpvanlastname', inputs['openid.ax.if_available'])
    self.assertEqual(inputs['openid.ax.type.ngpvanemail'], 'http://openid.net/schema/contact/internet/email')
    self.assertEqual(inputs['openid.ax.type.ngpvanfirstname'], 'http://openid.net/schema/namePerson/first')
    self.assertEqual(inputs['openid.ax.type.ngpvanlastname'], 'http://openid.net/schema/namePerson/last')
    self.assertEqual(inputs['openid.ax.type.ngpvanphone'], 'http://openid.net/schema/contact/phone/business')
