Ejemplo n.º 1
0
 def test_addition(self):
     '''
     Test our simple addition client
     '''
     res = add.delay(6, 14)
     self.assertEquals(res.get(), 20)
     self.assertTrue(res.successful())
Ejemplo n.º 2
0
 def test_states(self):
     '''
     Test the different states of a response.
     '''
     res = add.delay(1, 1)
     self.assertEquals(res.get(), 2)