def test__update_sources_returns_None_if_empty_text_src(self): self.sourceAdmin.source = empty_text_path expected = self.sourceAdmin.update_sources() text_source_reset(empty_text_path, []) self.assertEqual(expected, None)
def tearDown(self): text_source_reset(self.source, self.src_before)
def test_return_sources_returns_empty_list_if_empty_texts_src(self): self.sourceAdmin.source = empty_text_path expected = self.sourceAdmin.return_sources() text_source_reset(empty_text_path, []) self.assertEqual(expected, [])
def tearDown(self): db_cards_reset(self.db_source, self.db_key, self.db_source_before) text_source_reset(self.text_src, self.text_src_before)