<gh_stars>0
import mock

from exabyte_api_client.endpoints.jobs import JobEndpoints
from tests.unit.entity import EntityEndpointsUnitTest


class EndpointJobsUnitTest(EntityEndpointsUnitTest):
    """
    Class for testing jobs endpoint.
    """

    def __init__(self, *args, **kwargs):
        super(EndpointJobsUnitTest, self).__init__(*args, **kwargs)
        self.endpoint_name = "jobs"
        self.endpoints = JobEndpoints(self.host, self.port, self.account_id, self.auth_token)

    @mock.patch('requests.sessions.Session.request')
    def test_list(self, mock_request):
        self.list(mock_request)

    @mock.patch('requests.sessions.Session.request')
    def test_get(self, mock_request):
        self.get(mock_request)

    @mock.patch('requests.sessions.Session.request')
    def test_create(self, mock_request):
        self.create(mock_request)

    @mock.patch('requests.sessions.Session.request')
    def test_delete(self, mock_request):
        self.create(mock_request)

import mock

from exabyte_api_client.endpoints.jobs import JobEndpoints
from tests.unit.entity import EntityEndpointsUnitTest


class EndpointJobsUnitTest(EntityEndpointsUnitTest):
    """
    Class for testing jobs endpoint.
    """

    def __init__(self, *args, **kwargs):
        super(EndpointJobsUnitTest, self).__init__(*args, **kwargs)
        self.endpoint_name = "jobs"
        self.endpoints = JobEndpoints(self.host, self.port, self.account_id, self.auth_token)

    @mock.patch('requests.sessions.Session.request')
    def test_list(self, mock_request):
        self.list(mock_request)

    @mock.patch('requests.sessions.Session.request')
    def test_get(self, mock_request):
        self.get(mock_request)

    @mock.patch('requests.sessions.Session.request')
    def test_create(self, mock_request):
        self.create(mock_request)

    @mock.patch('requests.sessions.Session.request')
    def test_delete(self, mock_request):
        self.create(mock_request)
Class for testing jobs endpoint.