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_to_ref(self): taxcode = TaxCode() taxcode.Name = "test" ref = taxcode.to_ref() self.assertEquals(ref.value, "test")