note35 / sinon

Standalone and test framework agnostic Python test spies, stubs and mocks (pronounced "sigh-non").
BSD 2-Clause "Simplified" License
13 stars 4 forks source link

base.py exposes protected attributes #46

Open jonathan-benn opened 6 years ago

jonathan-benn commented 6 years ago

In base.py, there are several entities (attributes, methods, classes), including the following:

Pure
wrap2spy
unwrap
wrap2stub
args_type
pure
obj
prop
orig_func

These entities should probably be renamed to add a _ prefix (protected), to discourage end-users from trying to use them. The entities should be protected because they are used in child classes like SinonSpy and SinonStub.