def test_load_config_loads_configuration_file(self): shepherd = Shepherd(["-c", "./tests/cons.conf"]) shepherd.load_config() expect(shepherd.config.KEY).to_equal("doing something...")
def test_load_config_returns_if_no_config(self): shepherd = Shepherd([]) shepherd.load_config() expect(shepherd.config).not_to_be_null() expect(shepherd.config).to_be_instance_of(Config)