Ejemplo n.º 1
0
    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)
Ejemplo n.º 2
0
    def test_unicode(self):
        taxcode = TaxCode()
        taxcode.Name = "test"

        self.assertEquals(str(taxcode), "test")
Ejemplo n.º 3
0
    def test_unicode(self):
        taxcode = TaxCode()
        taxcode.Name = "test"

        self.assertEquals(str(taxcode), "test")
Ejemplo n.º 4
0
    def test_to_ref(self):
        taxcode = TaxCode()
        taxcode.Name = "test"

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