def testChangeDefaultAcl(self):
    bucket = self.CreateBucket()

    test_regex = self._MakeScopeRegex(
        'OWNER', 'group', self.GROUP_TEST_ADDRESS)
    test_regex2 = self._MakeScopeRegex(
        'READER', 'group', self.GROUP_TEST_ADDRESS)
    json_text = self.RunGsUtil(self._defacl_get_prefix +
                               [suri(bucket)], return_stdout=True)
    self.assertNotRegexpMatches(json_text, test_regex)

    self.RunGsUtil(self._defacl_ch_prefix +
                   ['-g', self.GROUP_TEST_ADDRESS+':FC', suri(bucket)])
    json_text2 = self.RunGsUtil(self._defacl_get_prefix +
                                [suri(bucket)], return_stdout=True)
    self.assertRegexpMatches(json_text2, test_regex)

    self.RunGsUtil(self._defacl_ch_prefix +
                   ['-g', self.GROUP_TEST_ADDRESS+':READ', suri(bucket)])
    json_text3 = self.RunGsUtil(self._defacl_get_prefix +
                                [suri(bucket)], return_stdout=True)
    self.assertRegexpMatches(json_text3, test_regex2)

    stderr = self.RunGsUtil(self._defacl_ch_prefix +
                            ['-g', self.GROUP_TEST_ADDRESS+':WRITE',
                             suri(bucket)],
                            return_stderr=True, expected_status=1)
    self.assertIn('WRITER cannot be set as a default object ACL', stderr)
Create a resource record on a domain.
dataset/ETHPy150Open GoogleCloudPlatform/gsutil/gslib/tests/test_defacl.py/TestDefacl.testChangeDefaultAcl--crossover with--dataset/ETHPy150Open softlayer/softlayer-python/SoftLayer/managers/dns.py/DNSManager.create_record