'L{StaticProducer.stopProducing} closes the file object the producer is
producing data from.'

def test_stopProducingClosesFile(self):

    fileObject = StringIO()
    producer = static.StaticProducer(None, fileObject)
    producer.stopProducing()
    self.assertTrue(fileObject.closed)
