several lines of code are reused from std unittest.py, insert copyright

Signed-off-by: Denis Zalevskiy <denis.zalevskiy@jollamobile.com>