def test_ss_list_add_real(self): prj = BaseProject(projects_folder=testing.output_data_folder()) prj.add_to_ss_list(testing.input_test_files(".000")[0]) self.assertEqual(len(prj.ss_list), 1) prj.add_to_ss_list(testing.input_test_files(".000")[0]) self.assertEqual(len(prj.ss_list), 1) prj.remove_from_ss_list(testing.input_test_files(".000")[0]) self.assertEqual(len(prj.ss_list), 0)
def test_ss_list_clear(self): prj = BaseProject(projects_folder=testing.output_data_folder()) prj.add_to_ss_list(testing.input_test_files(".000")[0]) prj.clear_ss_list() self.assertEqual(len(prj.ss_list), 0)
def test_ss_list_add_fake(self): prj = BaseProject(projects_folder=testing.output_data_folder()) with self.assertRaises(RuntimeError): prj.add_to_ss_list("fake/fake.000")