def test_get(self):
    x = self.app.ResultSet([self.app.AsyncResult(t) for t in [1, 2, 3]])
    b = x.results[0].backend = Mock()
    b.supports_native_join = False
    x.join_native = Mock()
    x.join = Mock()
    x.get()
    self.assertTrue(x.join.called)
    b.supports_native_join = True
    x.get()
    self.assertTrue(x.join_native.called)
def test_get(self):
    x = self.app.ResultSet([self.app.AsyncResult(t) for t in [1, 2, 3]])
    b = x.results[0].backend = Mock()
    b.supports_native_join = False
    x.join_native = Mock()
    x.join = Mock()
    x.get()
    self.assertTrue(x.join.called)
    b.supports_native_join = True
    x.get()
    self.assertTrue(x.join_native.called)