def test_create_judge(self): """ Test creating a judge. """ judge = Judge(competition=self.competition, username="******", password="******", email="*****@*****.**") judge.save() self.assertIsNotNone(judge)
def handle(self, *args, **options): judge = Judge() judge.name = options['name'] judge.auth_key = options['auth_key'] judge.save()