trivial: Replace assertRegexpMatches with assertRegex

Change-Id: Id1ee51fea6b754042ebe5204517dd91865ffbc28
This commit is contained in:
Tim Burke
2021年07月15日 14:39:48 -07:00
parent 1e410347f0
commit 57e41685ba

View File

@@ -450,7 +450,7 @@ class TestS3ApiMultiUpload(S3ApiBase):
o = resp_objects[0]
self.assertEqual(o.find('Key').text, keys[0])
self.assertIsNotNone(o.find('LastModified').text)
self.assertRegexpMatches(
self.assertRegex(
o.find('LastModified').text,
r'^\d{4}-\d{2}-\d{2}T\d{2}:\d{2}:\d{2}\.\d{3}Z$')
self.assertEqual(o.find('ETag').text, exp_etag)

View File

@@ -90,7 +90,7 @@ class TestS3ApiPresignedUrls(S3ApiBase):
for o in resp_objects:
self.assertIn(o.find('Key').text, req_objects)
self.assertIsNotNone(o.find('LastModified').text)
self.assertRegexpMatches(
self.assertRegex(
o.find('LastModified').text,
r'^\d{4}-\d{2}-\d{2}T\d{2}:\d{2}:\d{2}\.\d{3}Z$')
self.assertIsNotNone(o.find('ETag').text)
Reference in New Issue
openstack/swift
Block a user
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.

The note is not visible to the blocked user.