def METHOD_NAME(self):
    contents = 'This is a test'
    filename = self.files.create_file('foo', contents)
    prefixed_filename = 'file://' + filename
    data = self.get_paramfile(prefixed_filename)
    self.assertEqual(data, contents)
    self.assertIsInstance(data, six.string_types)