Пример #1
0
 def test_score(self):
     u = User(email='*****@*****.**', password='******')
     s = Score(user_id=u.id,
               game="test",
               score=10,
               max_score=20,
               duration=2,
               state="state",
               is_exam=True)
     self.assertIn('is_exam', s.to_json().keys())