(self)
| 1689 | |
| 1690 | class TestStringEqual: |
| 1691 | def test_simple(self): |
| 1692 | assert_string_equal("hello", "hello") |
| 1693 | assert_string_equal("hello\nmultiline", "hello\nmultiline") |
| 1694 | |
| 1695 | with pytest.raises(AssertionError) as exc_info: |
| 1696 | assert_string_equal("foo\nbar", "hello\nbar") |
| 1697 | msg = str(exc_info.value) |
| 1698 | assert_equal(msg, "Differences in strings:\n- foo\n+ hello") |
| 1699 | |
| 1700 | assert_raises(AssertionError, |
| 1701 | lambda: assert_string_equal("foo", "hello")) |
| 1702 | |
| 1703 | def test_regex(self): |
| 1704 | assert_string_equal("a+*b", "a+*b") |
nothing calls this directly
no test coverage detected