'Tests the email opt in preference'

@ddt.data((True, False), (False, True), (False, False))
@ddt.unpack
def test_update_email_opt_in_wrong_params(self, use_course_id, use_opt_in):

    params = {}
    if use_course_id:
        params['course_id'] = unicode(self.course.id)
    if use_opt_in:
        params['email_opt_in'] = u'True'
    response = self.client.post(self.url, params)
    self.assertHttpBadRequest(response)
