'Test course access on mobile for staff and students.'

@ddt.data((True, True, True), (False, False, True))
@ddt.unpack
def test__access_on_mobile(self, mobile_available, student_expected, staff_expected):

    descriptor = CourseFactory()
    descriptor.visible_to_staff_only = False
    descriptor.mobile_available = mobile_available
    self.assertEqual(bool(access._has_access_course(self.student, 'load_mobile', descriptor)), student_expected)
    self.assertEqual(bool(access._has_access_course(self.staff, 'load_mobile', descriptor)), staff_expected)
