'Check that get_cosmetic_display_price() returns the correct price given its inputs.'

@override_settings(PAID_COURSE_REGISTRATION_CURRENCY=['USD', '$'])
def test_get_cosmetic_display_price(self):

    course = CourseFactory.create()
    registration_price = 99
    course.cosmetic_display_price = 10
    with patch('course_modes.models.CourseMode.min_course_price_for_currency', return_value=registration_price):
        self.assertEqual(get_cosmetic_display_price(course), '$99')
    registration_price = 0
    with patch('course_modes.models.CourseMode.min_course_price_for_currency', return_value=registration_price):
        self.assertEqual(get_cosmetic_display_price(course), '$10')
    course.cosmetic_display_price = 0
    self.assertEqual(get_cosmetic_display_price(course), 'Free')
