MCPcopy Index your code
hub / github.com/numpy/numpy / test_simple

Method test_simple

numpy/testing/tests/test_utils.py:1691–1701  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

1689
1690class 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")

Callers

nothing calls this directly

Calls 3

assert_string_equalFunction · 0.90
assert_equalFunction · 0.90
assert_raisesFunction · 0.90

Tested by

no test coverage detected