Properly format assert statement
Merge pull request #4632 from dimagi/warning-fixes

Properly format assert statement