'test to check that that the same coupon code applied on multiple
items in the cart.'

def test_same_coupon_code_applied_on_multiple_items_in_the_cart(self):

    self.login_user()
    resp = self.client.post(reverse('shoppingcart.views.add_course_to_cart', args=[self.course_key.to_deprecated_string()]))
    self.assertEqual(resp.status_code, 200)
    self.add_coupon(self.course_key, True, self.coupon_code)
    resp = self.client.post(reverse('shoppingcart.views.use_code'), {'code': self.coupon_code})
    self.assertEqual(resp.status_code, 200)
    self.add_coupon(self.testing_course.id, True, self.coupon_code)
    resp = self.client.post(reverse('shoppingcart.views.add_course_to_cart', args=[self.testing_course.id.to_deprecated_string()]))
    self.assertEqual(resp.status_code, 200)
    resp = self.client.get(reverse('shoppingcart.views.show_cart', args=[]))
    self.assertEqual(resp.status_code, 200)
    self.assertIn('54.00', resp.content)
