Test template string literal equality. The *strings* argument must be a tuple of strings equal to *t.strings*. The *interpolations* argument must be a sequence of tuples which are compared against *t.interpolations*. Each tuple must match the form described in the `
(self, t, strings, interpolations)
| 28 | self.assertEqual(i.format_spec, "") |
| 29 | |
| 30 | def assertTStringEqual(self, t, strings, interpolations): |
| 31 | """Test template string literal equality. |
| 32 | |
| 33 | The *strings* argument must be a tuple of strings equal to *t.strings*. |
| 34 | |
| 35 | The *interpolations* argument must be a sequence of tuples which are |
| 36 | compared against *t.interpolations*. Each tuple must match the form |
| 37 | described in the `assertInterpolationEqual` method. |
| 38 | """ |
| 39 | self.assertEqual(t.strings, strings) |
| 40 | self.assertEqual(len(t.interpolations), len(interpolations)) |
| 41 | |
| 42 | for i, exp in zip(t.interpolations, interpolations, strict=True): |
| 43 | self.assertInterpolationEqual(i, exp) |
| 44 | |
| 45 | |
| 46 | def convert(value, conversion): |