I presume filter returns an iterator in Python 3.
Duplicate migration numbers can happen when merging changes from different branches. This test ensures that we address the issue right away.
New migrations need to be manually updated to correctly deal with custom user models. This test fails if this isn't done.