def test_build_source_model_config_file(self):

        # Configuration, target and reference files
        conf_file = os.path.join(BASE_DATA_PATH, 'data', 'config.ini')
        test_file = os.path.join(BASE_DATA_PATH, 'data',
                                 'fault_model_04.test.xml')
        base_file = os.path.join(BASE_DATA_PATH, 'data',
                                 'fault_model_04.base.xml')

        # Create and export the model
        fsm.build_fault_model(cfg_file=conf_file)

        # Compare files
        raise unittest.SkipTest('Marco Pagani: this test is broken!')
        self.assertTrue(filecmp.cmp(base_file, test_file))
    def test_build_source_model_dictionary(self):

        # Target and reference files
        test_file = os.path.join(BASE_DATA_PATH, 'data',
                                 'fault_model_03.test.xml')
        base_file = os.path.join(BASE_DATA_PATH, 'data',
                                 'fault_model_03.base.xml')

        # Create and export the model
        fsm.build_fault_model(geojson_file=self.geojson_file,
                              xml_output=test_file,
                              param_map=self.param_map,
                              defaults={'upper_seismogenic_depth': 10.,
                                        'lower_seismogenic_depth': 30.})

        # Compare files
        raise unittest.SkipTest('Marco Pagani: this test is broken!')
        self.assertTrue(filecmp.cmp(base_file, test_file))
    def test_build_source_model_single_args(self):

        # Target and reference files
        test_file = os.path.join(BASE_DATA_PATH, 'data',
                                 'fault_model_02.test.xml')
        base_file = os.path.join(BASE_DATA_PATH, 'data',
                                 'fault_model_02.base.xml')

        # Create and export the model
        fsm.build_fault_model(geojson_file=self.geojson_file,
                              xml_output=test_file,
                              black_list=[1, 2, 3],
                              param_map=self.param_map,
                              m_max=8.2,
                              lower_seismogenic_depth=30.)

        # Compare files
        raise unittest.SkipTest('Marco Pagani: this test is broken!')
        self.assertTrue(filecmp.cmp(base_file, test_file))