'Test to assert the number of coupon code purchases.'

def test_get_total_coupon_code_purchases(self):

    self.login_user(self.user.username)
    self.add_coupon(self.course_key, True, 'Ad123asd')
    self.add_coupon(self.course_key, True, '32213asd')
    self.purchases_using_coupon_codes()
    total_coupon_code_purchases = CouponRedemption.get_total_coupon_code_purchases(self.course_key)
    self.assertTrue(total_coupon_code_purchases['coupon__count'], 3)
