Esempio n. 1
0
    def test_read(self):
        tax_rates = TaxRate.all(max_results=1, qb=self.qb_client)

        self.assertEquals(len(tax_rates), 1)
    def test_unicode(self):
        tax = TaxRate()
        tax.Name = "test"

        self.assertEquals(unicode(tax), "test")
Esempio n. 3
0
    def test_valid_object_name(self):
        obj = TaxRate()
        client = QuickBooks()
        result = client.isvalid_object_name(obj.qbo_object_name)

        self.assertTrue(result)
Esempio n. 4
0
    def test_unicode(self):
        tax = TaxRate()
        tax.Name = "test"

        self.assertEquals(str(tax), "test")
    def test_read(self):
        tax_rates = TaxRate.all(max_results=1, qb=self.qb_client)

        self.assertEquals(len(tax_rates), 1)