5👍
✅
That’s quite enough. Just a couple of notes:
- No need to delete properties in
tearDown
- You forgot to tests
UserManager
in linesraise ValueError
usingassertRaises
. - You may also test that user created by
create_user
(from UserManager) canauthenticate
(from django.contrib.auth) by given password and email. - Use
coverage
package to detect which lines/classes/packages/statements were missed to test.
Source:stackexchange.com