'Verify the method deletes the cached enrollment status hash for the user.'

def test_save_deletes_cached_enrollment_status_hash(self):

    self.assertIsNone(cache.get(CourseEnrollment.enrollment_status_hash_cache_key(self.user)))
    status_hash = CourseEnrollment.generate_enrollment_status_hash(self.user)
    self.assert_enrollment_status_hash_cached(self.user, status_hash)
    CourseEnrollmentFactory.create(user=self.user)
    self.assertIsNone(cache.get(CourseEnrollment.enrollment_status_hash_cache_key(self.user)))
