@pytest.mark.django_db
def test_delete_user(en_tutorial_po):
 User = get_user_model()
 member = User.objects.get(username='member')
 nobody = User.objects.get(username='nobody')
 unit = _create_submission_and_suggestion(en_tutorial_po, member)
 member.delete()
 _test_user_merged(unit, member, nobody)

@ pytest . mark . django_db def test_delete_user ( en_tutorial_po ) : User = get_user_model ( ) member = User . objects . get ( username = 'member' ) nobody = User . objects . get ( username = 'nobody' ) unit = _create_submission_and_suggestion ( en_tutorial_po , member ) member . delete ( ) _test_user_merged ( unit , member , nobody )
test default behaviour of user .