コード例 #1
0
ファイル: tests.py プロジェクト: kennym/nejupy
    def test_create_judge(self):
        """ Test creating a judge. """
        judge = Judge(competition=self.competition,
                      username="******",
                      password="******",
                      email="*****@*****.**")
        judge.save()

        self.assertIsNotNone(judge)
コード例 #2
0
 def handle(self, *args, **options):
     judge = Judge()
     judge.name = options['name']
     judge.auth_key = options['auth_key']
     judge.save()