Exemple #1
0
class TestInvoices(unittest.TestCase):

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

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