'Verify that warnings emitted at the very edges of a function are still
determined to be emitted from that function.'

def test_functionBoundaries(self):

    def warner():
        warnings.warn('first    line    warning')
        warnings.warn('internal    line    warning')
        warnings.warn('last    line    warning')
    warner()
    self.assertEqual(len(self.flushWarnings(offendingFunctions=[warner])), 3)
