Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
def test_subclass(self):
"""Is the writer a subclass of the abstract file writer?"""
fpath = os.path.join(__datadir__, "data/ADF/basicADF2007.01/dvb_gopt.adfout")
self.assertTrue(os.path.exists(fpath))
data = cclib.io.ccread(fpath)
writer = cclib.io.xyzwriter.XYZ(data)
self.assertTrue(isinstance(writer, cclib.io.filewriter.Writer))
self.assertTrue(issubclass(type(writer), cclib.io.filewriter.Writer))