def test_invalid_ak_key(self): with self.assertRaises(Exception): client = baidumaps.Client(ak='Invalid key.')
def __init__(self, ak='3dd08864e4ced5da7d6004e46e26502d'): self.map = baidumaps.Client(ak)
def test_no_ak_key(self): with self.assertRaises(Exception): client = baidumaps.Client()