def test_init(self): with self.assertRaises(TypeError): disco_xso.Feature() f = disco_xso.Feature(var="foobar") self.assertEqual("foobar", f.var)
def test_parse(self): item = disco_xso.Feature(var="foobar") self.assertEqual("foobar", self.type_.parse(item))
def test_unpack(self): item = disco_xso.Feature(var="foobar") self.assertEqual("foobar", self.type_.unpack(item))