Beispiel #1
0
 def test_concat_2_str(self):
     test_cases = [
         (('hello', 'world'), 'hello world'),
         (('123', '456'), '123 456'),
         ((None, None), 'None None'),
     ]
     for inp, out in test_cases:
         self.assertEqual(concat_2_str(*inp), out)
Beispiel #2
0
def entry(request):
    if request.method == 'OPTIONS':
        return cors_options_res
    str1, str2 = parse_entry_req(request)
    res = concat_2_str(str1, str2)
    return (res, 200, cors_header)