'Ensure that C{TypeError} with a message about L{inlineCallbacks} is
raised when a non-generator returns something other than a generator.'

def test_nonGeneratorReturn(self):

    def _noYield():
        return 5
    _noYield = inlineCallbacks(_noYield)
    self.assertIn('inlineCallbacks', str(self.assertRaises(TypeError, _noYield)))
