def test_fill_config_with_correct_value_from_config_manager_with_empty_config(
            self):
        self.patch('os.environ', {})

        provenance = Provenance()
        config_return = {'run_script_environment': {}}

        provenance.fill_config(self.config_manager)
        self.assertDictEqual(provenance.config, config_return)
    def test_fill_config_with_correct_value_from_config_manager_with_multiple_keys(
            self):
        provenance = Provenance()
        self.config_manager['other'] = 'value'
        self.config_manager['next'] = 'one'

        provenance.fill_config(self.config_manager)
        self.assertEqual(provenance.config['other'], 'value')
        self.assertEqual(provenance.config['next'], 'one')
    def test_fill_config_with_correct_value_from_config_manager(self):
        provenance = Provenance()
        self.config_manager['other_world'] = 'aliens'

        provenance.fill_config(self.config_manager)
        self.assertEqual(provenance.config['other_world'], 'aliens')