'L{reporter.Reporter} observes warnings emitted by the Twisted log
system and writes them to its output stream.'

def test_warning(self):

    message = RuntimeWarning('some    warning    text')
    category = 'exceptions.RuntimeWarning'
    filename = 'path/to/some/file.py'
    lineno = 71
    self.publisher.msg(warning=message, category=category, filename=filename, lineno=lineno)
    self.assertEqual(self.stream.getvalue(), ('%s:%d:    %s:    %s\n' % (filename, lineno, category.split('.')[(-1)], message)))
