(self)
| 141 | self.assertEqual(fstring(t), "Value: value = 42") |
| 142 | |
| 143 | def test_raw_tstrings(self): |
| 144 | path = r"C:\Users" |
| 145 | t = rt"{path}\Documents" |
| 146 | self.assertTStringEqual(t, ("", r"\Documents"), [(path, "path")]) |
| 147 | self.assertEqual(fstring(t), r"C:\Users\Documents") |
| 148 | |
| 149 | # Test alternative prefix |
| 150 | t = tr"{path}\Documents" |
| 151 | self.assertTStringEqual(t, ("", r"\Documents"), [(path, "path")]) |
| 152 | |
| 153 | def test_template_concatenation(self): |
| 154 | # Test template + template |
nothing calls this directly
no test coverage detected