from unittest import TestCase
from bin.sample_api_client import SampleApiClient
# Test Case Definition Starts from here.


class TestSampleApiClient(TestCase):

        def test_get_todo_by_title(self):

            client = SampleApiClient(base_url='jsonplaceholder.typicode.com')
            # a free online REST service that produces some fake JSON data.

            result = client.get(resource='todos', key='title', value="delectus aut autem")

            expected = [
                {
                "userId": 1,
                "id": 1,
                "title": "delectus aut autem",
                "completed": False
              }
            ]

            self.assertEqual(expected, result)

314c44b889e6a3e72e35280149444bc26de7aa16
<mask token>

<mask token>


class TestSampleApiClient(TestCase):
    <mask token>

<mask token>


class TestSampleApiClient(TestCase):

    def test_get_todo_by_title(self):
        client = SampleApiClient(base_url='jsonplaceholder.typicode.com')
        result = client.get(resource='todos', key='title', value=
            'delectus aut autem')
        expected = [{'userId': 1, 'id': 1, 'title': 'delectus aut autem',
            'completed': False}]
        self.assertEqual(expected, result)

from unittest import TestCase
from bin.sample_api_client import SampleApiClient


class TestSampleApiClient(TestCase):

    def test_get_todo_by_title(self):
        client = SampleApiClient(base_url='jsonplaceholder.typicode.com')
        result = client.get(resource='todos', key='title', value=
            'delectus aut autem')
        expected = [{'userId': 1, 'id': 1, 'title': 'delectus aut autem',
            'completed': False}]
        self.assertEqual(expected, result)

from unittest import TestCase
from bin.sample_api_client import SampleApiClient
# Test Case Definition Starts from here.


class TestSampleApiClient(TestCase):

        def test_get_todo_by_title(self):

            client = SampleApiClient(base_url='jsonplaceholder.typicode.com')
            # a free online REST service that produces some fake JSON data.

            result = client.get(resource='todos', key='title', value="delectus aut autem")

            expected = [
                {
                "userId": 1,
                "id": 1,
                "title": "delectus aut autem",
                "completed": False
              }
            ]

            self.assertEqual(expected, result)
