def test_noqa_line_filter_code(self):
    nits = list(self.style_check.get_nits(self.no_qa_line))
    self.assertEqual('T999', nits[0].code, 'Not handling the code correctly')
Test if saving a visualization and restoring it works.
dataset/ETHPy150Open pantsbuild/pants/contrib/python/tests/python/pants_test/contrib/python/checks/tasks/checkstyle/test_noqa.py/TestPyStyleTask.test_noqa_line_filter_code--crossover with--dataset/ETHPy150Open enthought/mayavi/mayavi/tests/test_vtk_data_source.py/TestVTKDataSource.test_save_and_restore