def test_to_ref(self):
        taxcode = TaxCode()
        taxcode.Id = 2
        taxcode.Name = "test"

        ref = taxcode.to_ref()
        self.assertEquals(ref.name, "test")
        self.assertEquals(ref.type, "TaxCode")
        self.assertEquals(ref.value, 2)
    def test_unicode(self):
        taxcode = TaxCode()
        taxcode.Name = "test"

        self.assertEquals(str(taxcode), "test")
    def test_unicode(self):
        taxcode = TaxCode()
        taxcode.Name = "test"

        self.assertEquals(str(taxcode), "test")
Exemple #4
0
    def test_to_ref(self):
        taxcode = TaxCode()
        taxcode.Name = "test"

        ref = taxcode.to_ref()
        self.assertEquals(ref.value, "test")