コード例 #1
0
 def test_invalid_ak_key(self):
     with self.assertRaises(Exception):
         client = baidumaps.Client(ak='Invalid key.')
コード例 #2
0
 def __init__(self, ak='3dd08864e4ced5da7d6004e46e26502d'):
     self.map = baidumaps.Client(ak)
コード例 #3
0
 def test_no_ak_key(self):
     with self.assertRaises(Exception):
         client = baidumaps.Client()