コード例 #1
0
 def test_workoutByExceciserUuid16(self):
     api = ServerApi()
     self.assertNotEqual(200, api.workoutByExceciserUuid('abdejkls12ap4dfololjnbdgs3dvfaa',\
                                                  'd471432d-0821-47f2-b2b5-8636ffb280d0',\
                                                  '',\
                                                  '2018-01-01T00%3A00%3A00Z%2C%202018-12-31T23%3A59%3A59Z',\
                                                  1000,\
                                                  1).status_code)
コード例 #2
0
 def test_1_22_check_the_endpoint_with_invalid_categoryid_float(self):
    api = ServerApi()
    self.assertEqual(400, api.workoutByExceciserUuid('abdejkls12ap4dfololjnbdgs3dvfaa',\
                                                 'd471432d-0821-47f2-b2b5-8636ffb280d0',\
                                                 1.1,\
                                                 '',\
                                                 1000,\
                                                 1).status_code)
コード例 #3
0
 def test_1_9_check_the_endpoint_with_invalid_page_non_numeric_values(self):
    api = ServerApi()
    self.assertEqual(400, api.workoutByExceciserUuid('abdejkls12ap4dfololjnbdgs3dvfaa',\
                                                 'd471432d-0821-47f2-b2b5-8636ffb280d0',\
                                                 '',\
                                                 '',\
                                                 1000,\
                                                 'g').status_code)
コード例 #4
0
 def test_1_16_check_the_endpoint_with_invalid_modifiedat_missing_brackets(self):
    api = ServerApi()
    self.assertEqual(400, api.workoutByExceciserUuid('abdejkls12ap4dfololjnbdgs3dvfaa',\
                                                 'd471432d-0821-47f2-b2b5-8636ffb280d0',\
                                                 '',\
                                                 '2018-01-01T00%3A00%3A00Z%2C%202018-12-31T23%3A59%3A59Z',\
                                                 1000,\
                                                 1).status_code)
コード例 #5
0
 def test_1_10_check_the_endpoint_with_invalid_limit_negative(self):
    api = ServerApi()
    self.assertEqual(400, api.workoutByExceciserUuid('abdejkls12ap4dfololjnbdgs3dvfaa',\
                                                 'd471432d-0821-47f2-b2b5-8636ffb280d0',\
                                                 '',\
                                                 '',\
                                                 -1,\
                                                 1).status_code)
コード例 #6
0
 def test_1_1_check_the_endpoint_with_valid_access_token_exerciseruuid_limit_page(self):
    api = ServerApi()
    self.assertEqual(200, api.workoutByExceciserUuid('abdejkls12ap4dfololjnbdgs3dvfaa',\
                                                 'd471432d-0821-47f2-b2b5-8636ffb280d0',\
                                                 '',\
                                                 '',\
                                                 1000,\
                                                 1).status_code)
コード例 #7
0
 def test_workoutByExceciserUuid3(self):
     api = ServerApi()
     self.assertNotEqual(200, api.workoutByExceciserUuid('',\
                                                  'd471432d-0821-47f2-b2b5-8636ffb280d0',\
                                                  '',\
                                                  '',\
                                                  1000,\
                                                  1).status_code)
コード例 #8
0
 def test_workoutByExceciserUuid2(self):
     api = ServerApi()
     self.assertNotEqual(200, api.workoutByExceciserUuid('vrgabdejkls1g6hj8kkjhyedgs3dvlll',\
                                                  'd471432d-0821-47f2-b2b5-8636ffb280d0',\
                                                  '',\
                                                  '',\
                                                  1000,\
                                                  1).status_code)
コード例 #9
0
 def test_workoutByExceciserUuid1(self):
     api = ServerApi()
     self.assertEqual(200, api.workoutByExceciserUuid('abdejkls12ap4dfololjnbdgs3dvfaa',\
                                                  'd471432d-0821-47f2-b2b5-8636ffb280d0',\
                                                  '',\
                                                  '',\
                                                  1000,\
                                                  1).status_code)
コード例 #10
0
 def test_1_17_check_the_endpoint_with_invalid_modifiedat_single_date(self):
    api = ServerApi()
    self.assertEqual(400, api.workoutByExceciserUuid('abdejkls12ap4dfololjnbdgs3dvfaa',\
                                                 'd471432d-0821-47f2-b2b5-8636ffb280d0',\
                                                 '',\
                                                 '%5B2018-01-01T00%3A00%3A00Z',\
                                                 1000,\
                                                 1).status_code)
コード例 #11
0
 def test_1_2_check_the_endpoint_with_invalid_access_token(self):
    api = ServerApi()
    self.assertEqual(401, api.workoutByExceciserUuid('vrgabdejkls1g6hj8kkjhyedgs3dvlll',\
                                                 'd471432d-0821-47f2-b2b5-8636ffb280d0',\
                                                 '',\
                                                 '',\
                                                 1000,\
                                                 1).status_code)
コード例 #12
0
 def test_1_4_check_the_endpoint_with_invalid_exerciseruuid(self):
    api = ServerApi()
    self.assertEqual(404, api.workoutByExceciserUuid('abdejkls12ap4dfololjnbdgs3dvfaa',\
                                                 'ddddd32d-0821-47f2-b2b5-8636ffb280d0',\
                                                 '',\
                                                 '',\
                                                 1000,\
                                                 1).status_code)
コード例 #13
0
 def test_1_3_check_the_endpoint_with_missing_access_token(self):
    api = ServerApi()
    self.assertEqual(403, api.workoutByExceciserUuid('',\
                                                 'd471432d-0821-47f2-b2b5-8636ffb280d0',\
                                                 '',\
                                                 '',\
                                                 1000,\
                                                 1).status_code)
コード例 #14
0
 def test_workoutByExceciserUuid5(self):
     api = ServerApi()
     self.assertNotEqual(200, api.workoutByExceciserUuid('abdejkls12ap4dfololjnbdgs3dvfaa',\
                                                  '',\
                                                  '',\
                                                  '',\
                                                  1000,\
                                                  1).status_code)
コード例 #15
0
 def test_1_5_check_the_endpoint_with_missing_exerciseruuid(self):
    api = ServerApi()
    self.assertEqual(404, api.workoutByExceciserUuid('abdejkls12ap4dfololjnbdgs3dvfaa',\
                                                 '',\
                                                 '',\
                                                 '',\
                                                 1000,\
                                                 1).status_code)
コード例 #16
0
 def test_2_10_check_the_endpoint_with_invalid_workoutid_service_symbols(self):
      api = ServerApi()
      self.assertEqual(404, api.workoutByWorkoutId('abdejkls12ap4dfololjnbdgs3dvfaa', '#$@').status_code)
コード例 #17
0
 def test_2_9_check_the_endpoint_with_invalid_workoutid_non_numeric_values(self):
      api = ServerApi()
      self.assertEqual(400, api.workoutByWorkoutId('abdejkls12ap4dfololjnbdgs3dvfaa', 'fge').status_code)
コード例 #18
0
 def test_2_8_check_the_endpoint_with_invalid_workoutid_float(self):
      api = ServerApi()
      self.assertEqual(400, api.workoutByWorkoutId('abdejkls12ap4dfololjnbdgs3dvfaa', 1.1).status_code)
コード例 #19
0
 def test_2_4_check_the_endpoint_with_missing_workoutid(self):
      api = ServerApi()
      self.assertEqual(404, api.workoutByWorkoutId('abdejkls12ap4dfololjnbdgs3dvfaa', '').status_code)
コード例 #20
0
 def test_2_3_check_the_endpoint_with_missing_access_token(self):
      api = ServerApi()
      self.assertEqual(403, api.workoutByWorkoutId('', 219453846).status_code)
コード例 #21
0
 def test_2_2_check_the_endpoint_with_invalid_access_token(self):
      api = ServerApi()
      self.assertEqual(401, api.workoutByWorkoutId('ghetaejkls12ap4dfo3erry425dmmtunv', 219453846).status_code)
コード例 #22
0
 def test_workoutById8(self):
     api = ServerApi()
     self.assertNotEqual(
         200,
         api.workoutByWorkoutId('abdejkls12ap4dfololjnbdgs3dvfaa',
                                '#$@').status_code)
コード例 #23
0
 def test_workoutById2(self):
     api = ServerApi()
     self.assertNotEqual(
         200,
         api.workoutByWorkoutId('ghetaejkls12ap4dfo3erry425dmmtunv',
                                '219453846').status_code)
コード例 #24
0
 def test_2_1_check_the_endpoint_with_valid_access_token_workoutid(self):
    api = ServerApi()
    self.assertEqual(200, api.workoutByWorkoutId('abdejkls12ap4dfololjnbdgs3dvfaa', 219453846).status_code)
コード例 #25
0
 def test_workoutById4(self):
     api = ServerApi()
     self.assertNotEqual(200, api.workoutByWorkoutId('', '').status_code)