Beispiel #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")
Beispiel #2
0
 def test_unpack(self):
     t = forms_xso.InstructionsElement()
     v = forms_xso.Instructions()
     v.value = "foobar"
     self.assertEqual(
         v.value,
         t.unpack(v)
     )
Beispiel #3
0
 def test_get_xso_types(self):
     t = forms_xso.InstructionsElement()
     self.assertCountEqual(
         t.get_xso_types(),
         [forms_xso.Instructions]
     )
Beispiel #4
0
 def test_get_formatted_type(self):
     t = forms_xso.InstructionsElement()
     self.assertIs(t.get_formatted_type(), forms_xso.Instructions)