Minor updates for static provider docs

This commit is contained in:
Roman Mogilatov 2015-06-18 14:55:13 +03:00
parent ef41688e61
commit dbc368d5f6
2 changed files with 8 additions and 8 deletions

View File

@ -24,19 +24,19 @@ Example:
from objects.providers import Value
# Provides class - `object`
# Provides class - `object`:
cls_provider = Class(object)
assert cls_provider() is object
# Provides object - `object()`
# Provides object - `object()`:
object_provider = Object(object())
assert isinstance(object_provider(), object)
# Provides function - `len`
# Provides function - `len`:
function_provider = Function(len)
assert function_provider() is len
# Provides value - `123`
# Provides value - `123`:
value_provider = Value(123)
assert value_provider() == 123

View File

@ -6,18 +6,18 @@ from objects.providers import Function
from objects.providers import Value
# Provides class - `object`
# Provides class - `object`:
cls_provider = Class(object)
assert cls_provider() is object
# Provides object - `object()`
# Provides object - `object()`:
object_provider = Object(object())
assert isinstance(object_provider(), object)
# Provides function - `len`
# Provides function - `len`:
function_provider = Function(len)
assert function_provider() is len
# Provides value - `123`
# Provides value - `123`:
value_provider = Value(123)
assert value_provider() == 123