def handle(args): if args.group == "auth": auth_handler(args) elif args.group == "metadata": metadata_handler(args) elif args.group == "places": places_handler(args) elif args.group == "raster": raster_handler(args) else: print("invalid command group")
def test_invalid_character(self, *mocks): auth_handler(Args)
def test_incomplete_json(self, *mocks): with self.assertRaises(AuthError): auth_handler(Args)
def test_invalid_json(self, *mocks): auth_handler(Args)