- self.assertEqual(self.cfg.OS_USERNAME, "my_service")
-
- @mock.patch.object(os, "environ")
- def test_read_environ(self, environ):
- """Test reading environment variables for configuration."""
- self.cfg.read_environ("my_service")
-
- # Called for each key in the configuration dictionary
- environ.assert_called_once