def test_yaml_save(self):
        cluster_type = ClusterType()
        cluster_spec_file = os.path.join(os.path.dirname(__file__), TEST_CLUSTER_1_SPEC_FILE)
        cluster_type.load_from_file(cluster_spec_file)

        tmp_file, path = tempfile.mkstemp('test_yaml_save')

        cluster_type.save_to_file(path)

        cluster_type2 = ClusterType()
        cluster_type2.load_from_file(path)

        self.__check_2_specs(cluster_type, cluster_type2)