'Make sure that old CourseMasquerade objects receive missing attributes when unpickled from
the session.'

def test_unpickling_sets_all_attributes(self):

    cmasq = CourseMasquerade(7)
    del cmasq.user_name
    pickled_cmasq = pickle.dumps(cmasq)
    unpickled_cmasq = pickle.loads(pickled_cmasq)
    self.assertEqual(unpickled_cmasq.user_name, None)
