def test_yaml_io_new(self): from flavio import default_parameters with tempfile.NamedTemporaryFile('r+') as tf: write_file(tf.name, default_parameters) tf.seek(0) # rewind c = read_file(tf.name) self.assertEqual(c.get_yaml_dict(), default_parameters.get_yaml_dict())