def METHOD_NAME(self):
    flags = Flags()
    flags.set_value("variant", "Long string with \"quotes\" and 'quotes'.")
    self.assertEqual(
        flags.format(), r'''variant:"Long string with \"quotes\" and 'quotes'."'''
    )