MCPcopy Create free account
hub / github.com/pytest-dev/pytest / test_ne

Function test_ne

testing/code/test_code.py:15–19  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

13
14
15def test_ne() -> None:
16 code1 = Code(compile('foo = "bar"', "", "exec"))
17 assert code1 == code1
18 code2 = Code(compile('foo = "baz"', "", "exec"))
19 assert code2 != code1
20
21
22def test_code_gives_back_name_for_not_existing_file() -> None:

Callers

nothing calls this directly

Calls 1

CodeClass · 0.90

Tested by

no test coverage detected