def test_gc_load_bad_mode(self):
     json_string = '{' \
                     '"key": "12345678-0123-abcd-1234-0987654321fe", ' \
                     '"answer": [4, 0], ' \
                     '"smode": {' \
                         '"guesses_allowed": 2, ' \
                         '"digit_type": 0, ' \
                         '"priority": 5, ' \
                         '"mode": "test1", ' \
                         '"instruction_text": "None", ' \
                         '"help_text": "None", ' \
                         '"digits": 4' \
                     '}, ' \
                     '"guesses_made": 0, ' \
                     '"ttl": 3600, ' \
                     '"status": "playing"' \
                   '}'
     with self.assertRaises(ValueError):
         g = GameController()
         g._load_game(json_string)
 def test_gc_load_game(self):
     g = GameController()
     with self.assertRaises(TypeError):
         g._load_game({"gameid": 123})