proxygen
futures.Futures Class Reference
Inheritance diagram for futures.Futures:

Public Member Functions

def test_bridge (self)
 
def test_bridge_exception (self)
 
def test_bridge_fibers (self)
 

Detailed Description

Definition at line 8 of file futures.py.

Member Function Documentation

def futures.Futures.test_bridge (   self)

Definition at line 9 of file futures.py.

9  def test_bridge(self):
10  val = 1337
11  loop = asyncio.get_event_loop()
12  res = loop.run_until_complete(simplebridge.get_value_x5(val))
13  self.assertEqual(val * 5, res)
14 
def test_bridge(self)
Definition: futures.py:9
def futures.Futures.test_bridge_exception (   self)

Definition at line 15 of file futures.py.

16  loop = asyncio.get_event_loop()
17  with self.assertRaises(ValueError, msg="0 is not allowed"):
18  loop.run_until_complete(simplebridge.get_value_x5(0))
19 
def test_bridge_exception(self)
Definition: futures.py:15
def futures.Futures.test_bridge_fibers (   self)

Definition at line 20 of file futures.py.

20  def test_bridge_fibers(self):
21  val = 1337
22  loop = asyncio.get_event_loop()
23  res = loop.run_until_complete(simplebridge.get_value_x5_fibers(val))
24  self.assertEqual(val * 5, res)
25 
def test_bridge_fibers(self)
Definition: futures.py:20

The documentation for this class was generated from the following file: