old_contents: # -*- coding: utf-8 -*-
  
  import stromx.runtime as sr
  
  stream = sr.Stream()
  stream.setName("My stream")
  data = "dfdsfdsds\nkljöklöjkfldsjf"
  factory = sr.Factory()
  
  with sr.ZipFileOutput("provider_test.zip") as out:
      out.initialize("filename")
      out.openFile(".txt", sr.OutputProvider.OpenMode.TEXT)
      out.file().write(data)
      sr.XmlWriter().writeStream(out, "stream", stream)
  
  with sr.ZipFileInput("provider_test.zip") as inp:
      inp.initialize("", "filename.txt")
      inp.openFile(sr.InputProvider.OpenMode.TEXT)
      data = inp.file().read()
      stream = sr.XmlReader().readStream(inp, "stream.xml", factory)
  
  print(stream.name())
  print(data)
  
new_contents: # -*- coding: utf-8 -*-
  
  import stromx.runtime as sr
  
  stream = sr.Stream()
  stream.setName("My stream")
  data = "dfdsfdsds\nkljkljkfldsjf"
  factory = sr.Factory()
  
  with sr.ZipFileOutput("provider_test.zip") as out:
      out.initialize("filename")
      out.openFile(".txt", sr.OutputProvider.OpenMode.TEXT)
      out.file().write(data)
      sr.XmlWriter().writeStream(out, "stream", stream)
  
  with sr.ZipFileInput("provider_test.zip") as inp:
      inp.initialize("", "filename.txt")
      inp.openFile(sr.InputProvider.OpenMode.TEXT)
      data = inp.file().read()
      stream = sr.XmlReader().readStream(inp, "stream.xml", factory)
  
  print(stream.name())
  print(data)
  
subject: Fix python data provider test