def test_touch_to_not_exist_path
@priv.touch('bar')
assert_equal(1, @exist_call)
assert_equal('bar', @exist_path)
assert_equal(1, @open_call)
assert_equal('bar', @open_path)
assert_equal(File::WRONLY | File::CREAT | File::EXCL, @open_mode)
assert_equal(1, @getpwnam_call)
assert_equal('http_user', @getpwnam_name)
assert_equal(1, @getgrnam_call)
assert_equal('http_group', @getgrnam_name)
assert_equal(1, @chown_call)
assert_equal(80, @chown_owner)
assert_equal(80, @chown_group)
assert_equal('bar', @chown_path)
end