Change python asserts to unittest asserts

With regular python asserts, if the test fails, an AssertionError is thrown and the test suite will not continue to run. By replacing them with unittest assertions, the test suite will run as expected.