def METHOD_NAME(self):
    self.event.deregistration_deadline = datetime(1940, 1, 1)
    self.event.save()
    self.event.register_user(self.user)
    self.assertRaises(EventException, self.event.deregister_user, self.user)