 import os . path <EOL> import unittest <EOL> from resources . setting_utils import TestSettingsHelper <EOL> from robotide . preferences . settings import SettingsMigrator <EOL> class TestMergeSettings ( TestSettingsHelper ) : <EOL> def setUp ( self ) : 
 base = os . path . join ( os . path . dirname ( __file__ ) , '<STR_LIT:..>' , '<STR_LIT>' ) 
 import os . path <EOL> import unittest <EOL> from resources . setting_utils import TestSettingsHelper <EOL> from robotide . preferences . settings import SettingsMigrator <EOL> class TestMergeSettings ( TestSettingsHelper ) : <EOL> def setUp ( self ) : <EOL> base = os . path . join ( os . path . dirname ( __file__ ) , '<STR_LIT:..>' , '<STR_LIT>' ) <EOL> self . settings_cfg = os . path . join ( base , '<STR_LIT>' ) <EOL> self . user_cfg = os . path . join ( base , '<STR_LIT>' ) <EOL> def tearDown ( self ) : <EOL> pass <EOL> def test_merge_settings ( self ) : <EOL> SettingsMigrator ( self . settings_cfg , self . user_cfg ) . merge ( ) <EOL> SettingsMigrator ( self . settings_cfg , self . user_cfg ) . merge ( ) <EOL> content = self . _read_settings_file_content ( self . user_cfg ) <EOL> line_count = len ( content . splitlines ( ) ) <EOL> self . assertEquals ( line_count , <NUM_LIT> , "<STR_LIT>" % <EOL> line_count ) <EOL> if __name__ == "<STR_LIT:__main__>" : <EOL> unittest . main ( ) </s>
