from mock import Mock
from .. import radosgw_admin
acl_with_version = """fooFoofooFooFULL_CONTROL
""" # noqa
acl_without_version = """fooFoofooFooFULL_CONTROL
""" # noqa
class TestGetAcl(object):
def setup(self):
self.key = Mock()
def test_removes_xml_version(self):
self.key.get_xml_acl = Mock(return_value=acl_with_version)
result = radosgw_admin.get_acl(self.key)
assert result.startswith('