Question: Hi there I am writing scraping code but when i try to get all paragraph from website it give me following error
Unicode Encode Error: Charmap cannot encode character '\xa9'

here is my code:

```js
#Loading Libraries
import urllib
from urllib.parse import urlparse
from urllib.parse import urljoin
import urllib.request
from bs4 import BeautifulSoup

#define URL for scraping
newsurl = "http://www.techspot.com/news/67832-netflix-exceeds-growth-expectations-home-abroad-stock-soars.html"
thepage = urllib.request.urlopen(newsurl)

soup = BeautifulSoup(thepage ,"html.parser")

article = soup.find_all('div' , {'class','articleBody'})

for pg in article:
 paragraph = soup.findAll('p')
 ptag = paragraph
 print(ptag)
```

Error I am getting is following:

[![enter image description here](https://i.stack.imgur.com/7oENQ.jpg)](https://i.stack.imgur.com/7oENQ.jpg)

Let me how to remove this error

Answer: 
You should verify the 2 statements because your code can change.

Unit test is some kind of documentation of your code.

* Verifying both statements means that both statements MUST not be called.
* Verifying only one means that only the 1st statement MUST not be called.

If someone changes the method to call `anotherService.someMethod()` inside the `if` statement, your test will still pass with 1 verify and will fail with 2 verify.
YES! Part of the function of a unit test is documenting the expected behaviors of code. The test(s) should be written in a way that treats the code under test as a black box. If the code under test will do two things in a specific order (if conditions are met) then the unit test should check that all things were done under positive conditions AND that NONE of the items were done under the negative conditions.

If you only check one condition in your test, then 2 years from now, an intern might update the code, and need to remove the one task that is being checked. Your test will still pass (code removed not executed - check!) but that doesn't mean the code is behaving correctly.