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

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