'test to set the course price related functionality.
test al the scenarios for setting a new course price'

def test_user_admin_set_course_price(self):

    set_course_price_url = reverse('set_course_mode_price', kwargs={'course_id': self.course.id.to_deprecated_string()})
    data = {'course_price': '12%', 'currency': 'usd'}
    response = self.client.post(set_course_price_url, data)
    self.assertIn('Please    Enter    the    numeric    value    for    the    course    price', response.content)
    data['course_price'] = 100
    response = self.client.post(set_course_price_url, data)
    self.assertIn('CourseMode    price    updated    successfully', response.content)
    course_honor_mode = CourseMode.objects.get(mode_slug='honor')
    course_honor_mode.delete()
    response = self.client.post(set_course_price_url, data)
    self.assertIn('CourseMode    with    the    mode    slug({mode_slug})    DoesNotExist'.format(mode_slug='honor'), response.content)
