From 71bfe8974e3274c80c2fd6d1be4c54a24345a0e7 Mon Sep 17 00:00:00 2001 From: Josh Durgin Date: Thu, 10 Nov 2011 16:52:01 -0800 Subject: [PATCH] test/pybind: add test_rgw Forgot to add this in the previous commit. Signed-off-by: Josh Durgin --- src/test/pybind/test_rgw.py | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100644 src/test/pybind/test_rgw.py diff --git a/src/test/pybind/test_rgw.py b/src/test/pybind/test_rgw.py new file mode 100644 index 0000000000000..6db194d994ebc --- /dev/null +++ b/src/test/pybind/test_rgw.py @@ -0,0 +1,24 @@ +from nose.tools import eq_ as eq, assert_raises +from rgw import Rgw + +def test_rgw(): + rgw = Rgw() + xml = """ + + foo + MrFoo + + + + + bar + display-name + + FULL_CONTROL + + +""" + blob = rgw.acl_xml2bin(xml) + converted_xml = rgw.acl_bin2xml(blob) + converted_blob = rgw.acl_xml2bin(converted_xml) + eq(blob, converted_blob) -- 2.39.5