def test_takes_app_from_first_task(self): x = ResultSet([self.app.AsyncResult('id1')]) assert x.app is x.results[0].app x.app = self.app assert x.app is self.app
def test_takes_app_from_first_task(self): x = ResultSet([self.app.AsyncResult('id1')]) self.assertIs(x.app, x.results[0].app) x.app = self.app self.assertIs(x.app, self.app)