def test_code_blocks_exist(self):
    'Test that all the code-blocks exist in the python file.'
    for blocks in self.code_blocks:
        assert (blocks in self.python_file), "Code-block doesn't exist in the python file."
Test that all the code-blocks exist in the python file.
def test_code_blocks_exist(self):
    
    for blocks in self.code_blocks:
        assert (blocks in self.python_file), "Code-block doesn't exist in the python file."