예제 #1
0
    def _valid_change(self):
        person = fixtures.PersonFactory()

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