def test_kobol_identifies_a_directory_not_to_scaffold(self): k = Kobol('./support/') expect(k.scaffold()) == False
def test_kobol_identifies_a_directory_to_scaffold(self): k = Kobol() expect(k.scaffold(dry = True)) == True
def test_adding_one_more_file(self): k = Kobol() k.load_config_files('support/.kobol') expect(k.config.get('theme')) == 'kobol'
def test_adding_two_more_file(self): k = Kobol() k.load_config_files([ 'support/.kobol', 'support/final_config.conf' ]) expect(k.config.get('theme')) == 'RADTHEME'
def test_kobol_configures_self(self): tmp_dir = tempfile.mkdtemp() k = Kobol(tmp_dir) k.main() shutil.rmtree(tmp_dir) expect(k.config['theme']) == 'kobol'