'Check that when working with a product being processed by the
ecommerce api, we correctly call to that api for the list of
available payment processors.'

@httpretty.activate
@override_settings(ECOMMERCE_API_URL=TEST_API_URL)
@ddt.data('verify_student_start_flow', 'verify_student_begin_flow')
def test_processors_api(self, payment_flow):

    course = self._create_course('verified', sku='nonempty-sku')
    self._enroll(course.id)
    httpretty.register_uri(httpretty.GET, '{}/payment/processors/'.format(TEST_API_URL), body=json.dumps(['foo', 'bar']), content_type='application/json')
    response = self._get_page(payment_flow, course.id)
    self.assertEqual(response.status_code, 200)
    self.assertNotEqual(httpretty.last_request().headers, {})
