def test_write_item_invalid(self):
    item = CustomItem()
    writer = _ReconWriter()
    with self.assertRaises(TypeError) as error:
        writer._write_item(item)
    message = error.exception.args[0]
    self.assertEqual('No Recon serialization for CustomItem!', message)
def test_write_item_invalid(self):
    item = CustomItem()
    writer = _ReconWriter()
    with self.assertRaises(TypeError) as error:
        writer._write_item(item)
    message = error.exception.args[0]
    self.assertEqual('No Recon serialization for CustomItem!', message)