def setUp(self): super(TestReceiver, self).setUp() s = Sesshun() adapter = SessionHttpAdapter(s) adapter.init_from_post({}) s.save()