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