'Order with mutiple refunds will not throw 500 error when dashboard page will access.'

@httpretty.activate
@override_settings(ECOMMERCE_API_URL=TEST_API_URL)
def test_multiple_refunds_dashbaord_page_error(self):

    now = datetime.now(pytz.UTC).replace(microsecond=0)
    order_date = (now + timedelta(days=1))
    expected_content = '{{"date_placed":    "{date}"}}'.format(date=order_date.strftime(ECOMMERCE_DATE_FORMAT))
    httpretty.register_uri(httpretty.GET, '{url}/orders/{order}/'.format(url=TEST_API_URL, order=self.ORDER_NUMBER), status=200, body=expected_content, adding_headers={'Content-Type': JSON})
    for attribute_count in range(2):
        self.enrollment.attributes.add(CourseEnrollmentAttribute(enrollment=self.enrollment, namespace='order', name='order_number', value=self.ORDER_NUMBER))
    self.client.login(username=self.user.username, password=self.USER_PASSWORD)
    resp = self.client.post(reverse('student.views.dashboard', args=[]))
    self.assertEqual(resp.status_code, 200)
