(self)
| 1218 | |
| 1219 | class TestStringEqual: |
| 1220 | def test_simple(self): |
| 1221 | assert_string_equal("hello", "hello") |
| 1222 | assert_string_equal("hello\nmultiline", "hello\nmultiline") |
| 1223 | |
| 1224 | with pytest.raises(AssertionError) as exc_info: |
| 1225 | assert_string_equal("foo\nbar", "hello\nbar") |
| 1226 | msg = str(exc_info.value) |
| 1227 | assert_equal(msg, "Differences in strings:\n- foo\n+ hello") |
| 1228 | |
| 1229 | assert_raises(AssertionError, |
| 1230 | lambda: assert_string_equal("foo", "hello")) |
| 1231 | |
| 1232 | def test_regex(self): |
| 1233 | assert_string_equal("a+*b", "a+*b") |
nothing calls this directly
no test coverage detected