def test_load_config_from_external_source(self): config = DFPConfig() config.load_config_from_external_source(**self.credentials) config.validate_credentials() self.assertDictEqual(self.credentials, config.get_credentials_arguments())
def test_load_config_from_file(self): config1 = DFPConfig() config1.load_config_from_file(ParselmouthProviders.google_dfp_premium, self.config_path) config1.validate_credentials() self.assertDictEqual(self.credentials, config1.get_credentials_arguments()) config2 = DFPConfig() config2.load_config_from_file( ParselmouthProviders.google_dfp_small_business, self.config_path) config2.validate_credentials() self.assertDictEqual(self.credentials, config2.get_credentials_arguments())