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 })
def setUp(self): self.resource = Bulks("uri", ("username", "token"))