コード例 #1
0
 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)
コード例 #2
0
 def tearDown(self):
     text_source_reset(self.source, self.src_before)
コード例 #3
0
 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, [])
コード例 #4
0
    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)