Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import unittest
- import json
- from jsonschema import validate
- from jsonschema import Draft4Validator
- from ApiClient import ApiClient
- class ApiTesting(unittest.TestCase):
- api = ApiClient()
- def test_test(self):
- response = self.api.get('topics/ids/')
- result = response['result']
- test = []
- for i in result:
- schema = {
- 'type': 'number'
- }
- Draft4Validator(schema).validate(i)
- test += str(i)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement