def test_raw_response_parsing(self): MaxAvatarsTestBase.setUp(self) from max.exceptions.scavenger import format_raw_response res = self.testapp.get('/people/test_manager/avatar') parsed = format_raw_response(res) self.assertIn('<Image data 3909 bytes>', parsed) MaxAvatarsTestBase.tearDown(self)
def tearDown(self): """ Deletes test avatar folder with all test images """ self.patched_post.stop() self.patched_get.stop() MaxAvatarsTestBase.tearDown(self)