def _valid_change(self): person = fixtures.PersonFactory() valid_change = { 'username': person.username, 'new1': 'wai5bixa8Igohxa', 'new2': 'wai5bixa8Igohxa'} return person, valid_change
def _test_project_approval(self, application): admin = fixtures.PersonFactory(username='******') admin.is_admin = True admin.save() application.approve(admin)