Esempio n. 1
0
class TestBulk(unittest.TestCase):
    def setUp(self):
        self.resource = Bulks("uri", ("username", "token"))

    def test_list(self):
        with patch.object(self.resource, "get_instances") as mock:
            self.resource.list(
                page=2,
                limit=10,
            )
            mock.assert_called_with({"page": 2, "limit": 10, "search": False})
class TestBulk(unittest.TestCase):

    def setUp(self):
        self.resource = Bulks("uri", ("username", "token"))

    def test_list(self):
        with patch.object(self.resource, "get_instances") as mock:
            self.resource.list(
                page=2,
                limit=10,
            )
            mock.assert_called_with({
                "page": 2,
                "limit": 10,
                "search": False
            })
Esempio n. 3
0
 def setUp(self):
     self.resource = Bulks("uri", ("username", "token"))
 def setUp(self):
     self.resource = Bulks("uri", ("username", "token"))