While Python has an assert statement, the Python unit testing framework has better assertions specialized for tests: they are more informative on failures, and do not depend on the execution's debug mode.
Perhaps the simplest assertion is assertTrue, which can be used like this:
import unittest
...