is it worth checking  for `self.assertNotIn(None, self.mw.autoclose_sessions)` ?