put assertion outside of the exception handler

Unless an exception is raised, assertion that has been placed in the exception handler is not executed.

```python
def test_sample(self):
    try:
        pass  # expect raising exception
    except:
        self.assertTrue(False)  # pass this testcase
```