June 2019
Beginner to intermediate
770 pages
19h 24m
English
We'll use a technology spike to show you how an application might use this Access class to process the microblog objects. The spike script will save some Blog and Post objects to a database to show a sequence of operations that an application might use. This demonstration script can be expanded into unit test cases.
More complete unit tests would show us that all the features are present and work correctly. This small spike script shows us how Access works:
from contextlib import closingfrom pathlib import Pathpath = Path.cwd() / "data" / "ch11_blog"
with closing(Access()) as access:
access.new(path) # Create Example
access.create_blog(b1)
for post in p2, p3:
access.create_post(b1, post)
# Retrieve Example ...Read now
Unlock full access