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