def test_insert_data_in_text(self): examplary_text = "silt kilst sliks klast list tilst liist" list_data = [1111, 11, 1111, 11, 111, 1] instance = LogWriter(list_data, examplary_text) new_text = instance.insert_data_in_text(examplary_text, list_data) self.assertEqual( new_text, "silt kilst sliks klast list ([1111, 11, 1111, 11, 111, 1]) tilst liist" )
def setUp(self): self.head_text = """ The following list represents the total number of invisible unicorns in classroom. """ self.list_data = [1,2,3,4] self.test_instance = LogWriter(self.list_data, self.head_text)