I feel like this would have a difficult to debug error message, wouldn't it just say:  `AssertionError: 255 != None`.  What if you just store the session variable in the _mock_call and do your assert check here?