Changeset 261 for honeyclient/trunk/t
- Timestamp:
- 04/25/07 17:02:52 (2 years ago)
- Files:
-
- honeyclient/trunk/t/honeyclient_util_config.t (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
honeyclient/trunk/t/honeyclient_util_config.t
r131 r261 83 83 is($value, "localhost", "getVar(name => 'address', namespace => 'HoneyClient::Util::Config::Test::Undefined::Child', attribute => 'default')") 84 84 or diag("The getVar() call failed. Attempted to get attribute 'default' for variable 'address' using namespace 'HoneyClient::Util::Config::Test::Undefined::Child' within the global configuration file."); 85 86 # This check tests to make sure getVar() returns the expected hashref 87 # when getting data from a target element that contains child sub-elements. 88 $value = getVar(name => "Yok", namespace => "HoneyClient::Util::Config::Test"); 89 my $expectedValue = { 90 'childA' => [ '12345678', 'ABCDEFGH' ], 91 'childB' => [ '09876543', 'ZYXVTUWG' ], 92 }; 93 is_deeply($value, $expectedValue, "getVar(name => 'Yok', namespace => 'HoneyClient::Util::Config::Test')") 94 or diag("The getVar() call failed. Attempted to get variable 'Yok' using namespace 'HoneyClient::Util::Config::Test' within the global configuration file."); 85 95 } 86 96
