示例#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")
示例#2
0
 def test_unpack(self):
     t = forms_xso.InstructionsElement()
     v = forms_xso.Instructions()
     v.value = "foobar"
     self.assertEqual(
         v.value,
         t.unpack(v)
     )
示例#3
0
 def test_get_xso_types(self):
     t = forms_xso.InstructionsElement()
     self.assertCountEqual(
         t.get_xso_types(),
         [forms_xso.Instructions]
     )
示例#4
0
文件: test_xso.py 项目: e-ht/aioxmpp
 def test_get_formatted_type(self):
     t = forms_xso.InstructionsElement()
     self.assertIs(t.get_formatted_type(), forms_xso.Instructions)