def test_pack(self): t = forms_xso.InstructionsElement() v = t.pack("foo") self.assertIsInstance( v, forms_xso.Instructions ) self.assertEqual(v.value, "foo")
def test_unpack(self): t = forms_xso.InstructionsElement() v = forms_xso.Instructions() v.value = "foobar" self.assertEqual( v.value, t.unpack(v) )
def test_get_xso_types(self): t = forms_xso.InstructionsElement() self.assertCountEqual( t.get_xso_types(), [forms_xso.Instructions] )
def test_get_formatted_type(self): t = forms_xso.InstructionsElement() self.assertIs(t.get_formatted_type(), forms_xso.Instructions)