What you probably want here is:

```python
self.assertRaises(IntegrityError, models.EndUser.objects.create_user, username=self.username, password='1234')
```

That will have the test fail if that exception is not raised.