@pytest.fixture
def Fred(default_groups):
 fred = User(username='Fred', email='fred@fred.fred', password='fred', primary_group=default_groups[3], activated=True)
 fred.save()
 return fred

@ pytest . fixture def Fred ( default_groups ) : fred = User ( username = 'Fred' , email = 'fred@fred.fred' , password = 'fred' , primary_group = default_groups [ 3 ] , activated = True ) fred . save ( ) return fred
fred is an interloper and bad intentioned user .