class LoadTest < Test::Unit::TestCase
def test_loading
require 'zypp'
- zypp = Zypp::ZYppFactory::instance.get_zypp
+ zypp = Zypp::ZYppFactory::instance.getZYpp
assert zypp
zconfig = Zypp::ZConfig::instance
assert zconfig
- puts zconfig.system_architecture
- zconfig.set_system_architecture(Zypp::Arch.new("i686"))
- puts zconfig.system_architecture
+ puts zconfig.systemArchitecture
+ zconfig.setSystemArchitecture(Zypp::Arch.new("i686"))
+ puts zconfig.systemArchitecture
end
end
require 'zypp'
include Zypp
def test_target
- z = ZYppFactory::instance.get_zypp
+ z = ZYppFactory::instance.getZYpp
- assert z.home_path
- assert z.tmp_path
+ assert z.homePath
+ assert z.tmpPath
- z.initialize_target(Zypp::Pathname.new("/"))
+ z.initializeTarget(Zypp::Pathname.new("/"))
t = z.target
assert t
t.load
- t.build_cache
+ t.buildCache
p = z.pool
assert p