Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/pytest-dev/pytest
/ test_attribute_instance
Function
test_attribute_instance
doc/en/example/assertion/failure_demo.py:131–135 ·
view source on GitHub ↗
()
Source
from the content-addressed store, hash-verified
129
130
131
def
test_attribute_instance():
132
class
Foo:
133
b = 1
134
135
assert Foo().b == 2
136
137
138
def
test_attribute_failure():
Callers
nothing calls this directly
Calls
1
Foo
Class · 0.70
Tested by
no test coverage detected