コード例 #1
0
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")
コード例 #2
0
 def test_invalid_character(self, *mocks):
     auth_handler(Args)
コード例 #3
0
 def test_incomplete_json(self, *mocks):
     with self.assertRaises(AuthError):
         auth_handler(Args)
コード例 #4
0
 def test_invalid_json(self, *mocks):
     auth_handler(Args)