def test_stopProducingClosesFile(self):
    '\n        L{StaticProducer.stopProducing} closes the file object the producer is\n        producing data from.\n        '
    fileObject = StringIO()
    producer = static.StaticProducer(None, fileObject)
    producer.stopProducing()
    self.assertTrue(fileObject.closed)
L{StaticProducer.stopProducing} closes the file object the producer is
producing data from.
def test_stopProducingClosesFile(self):
    '\n        L{StaticProducer.stopProducing} closes the file object the producer is\n        producing data from.\n        '
    fileObject = StringIO()
    producer = static.StaticProducer(None, fileObject)
    producer.stopProducing()
    self.assertTrue(fileObject.closed)