示例#1
0
    def test_init(self):
        with self.assertRaises(TypeError):
            disco_xso.Feature()

        f = disco_xso.Feature(var="foobar")
        self.assertEqual("foobar", f.var)
示例#2
0
 def test_parse(self):
     item = disco_xso.Feature(var="foobar")
     self.assertEqual("foobar", self.type_.parse(item))
示例#3
0
 def test_unpack(self):
     item = disco_xso.Feature(var="foobar")
     self.assertEqual("foobar", self.type_.unpack(item))