@pytest.mark.cmd
@pytest.mark.django_db
def test_find_duplicate_emails_nodups(capfd, no_extra_users):
 call_command('find_duplicate_emails')
 (out, err) = capfd.readouterr()
 assert ('There are no accounts with duplicate emails' in out)

@ pytest . mark . cmd @ pytest . mark . django_db def test_find_duplicate_emails_nodups ( capfd , no_extra_users ) : call_command ( 'find_duplicate_emails' ) ( out , err ) = capfd . readouterr ( ) assert ( 'There are no accounts with duplicate emails' in out )
no duplicates found .