示例#1
0
 def test_wg_unofficial(self, get):
     get.return_value.json.return_value = [{'id': '123456'}]
     wot = WoT('demo', 'ru', 'ru')
     with self.assertRaises(ValidationError):
         wot.globalmap.wg_clan_battles('')
     res = wot.globalmap.wg_clan_battles(123)
     self.assertIsInstance(res, WGAPI)
示例#2
0
 def test_real_schema():
     WoT('demo', 'ru', 'ru')
     WGN('demo', 'ru', 'ru')
     WoTB('demo', 'ru', 'ru')
     WoWP('demo', 'ru', 'ru')
     WoWS('demo', 'ru', 'ru')
     WoTX('demo', 'ru', 'ru')
示例#3
0
 def test_invalid_region(self):
     with self.assertRaises(ValidationError):
         WoT('demo', 'ua', 'ua')