manifest_xml: cleanup of contactinfo test for readability with f-strings.

Tested the code with the following commands.

$ ./run_tests -v

Bug: [google internal] b/186220520.
Change-Id: I1c0f8958ff4c615707eec218250e8de753ec6562
Reviewed-on: https://gerrit-review.googlesource.com/c/git-repo/+/305282
Reviewed-by: Mike Frysinger <vapier@google.com>
Tested-by: Raman Tenneti <rtenneti@google.com>
This commit is contained in:
Raman Tenneti 2021-05-04 18:54:52 -07:00
parent 219431e1c9
commit 2f8fdbecde

View File

@ -579,4 +579,6 @@ class ContactinfoElementTests(ManifestParseTestCase):
self.assertEqual(manifest.contactinfo['bugurl'], bugurl) self.assertEqual(manifest.contactinfo['bugurl'], bugurl)
self.assertEqual( self.assertEqual(
manifest.ToXml().toxml(), manifest.ToXml().toxml(),
f"""<?xml version="1.0" ?><manifest><contactinfo bugurl="{bugurl}"/></manifest>""") '<?xml version="1.0" ?><manifest>'
f'<contactinfo bugurl="{bugurl}"/>'
'</manifest>')