'test to check if the user views the set price button and price in
the instructor dashboard'

def test_user_view_course_price(self):

    response = self.client.get(self.url)
    self.assertIn(self.ecommerce_link, response.content)
    course_honor_mode = CourseMode.mode_for_course(self.course.id, 'honor')
    price = course_honor_mode.min_price
    self.assertIn((('Course    price    per    seat:    <span>$' + str(price)) + '</span>'), response.content)
    self.assertNotIn('+    Set    Price</a></span>', response.content)
    CourseFinanceAdminRole(self.course.id).remove_users(self.instructor)
    url = reverse('instructor_dashboard', kwargs={'course_id': self.course.id.to_deprecated_string()})
    response = self.client.get(url)
    self.assertNotIn('+    Set    Price</a></span>', response.content)
