January 2018
Intermediate to advanced
366 pages
9h 7m
English
There are a number of text conventions used throughout this book.
CodeInText: Indicates code words in text, database table names, folder names, filenames, file extensions, pathnames, dummy URLs, user input, and Twitter handles. Here is an example: "The config.py file is where the settings for each development environment exist."
A block of code is set as follows:
class TestDevelopmentConfig(TestCase): def create_app(self): app.config.from_object('config.DevelopmentConfig') return app def test_app_is_development(self): self.assertTrue(app.config['DEBUG'] is True)
When we wish to draw your attention to a particular part of a code block, the relevant lines or items are set in bold:
@patch('views.rpc_command') def test_sucess(self, ...Read now
Unlock full access