예제 #1
0
 def test_read_from_list_with_ids(self):
     tfl = TextFile()
     text_list = [["a1", "fragment 1"], ["b2", "fragment 2"],
                  ["c3", "fragment 3"], ["d4", "fragment 4"],
                  ["e5", "fragment 5"]]
     tfl.read_from_list_with_ids(text_list)
     self.assertEqual(len(tfl), 5)
예제 #2
0
 def test_read_from_list_with_ids(self):
     tfl = TextFile()
     text_list = [(u"a1", u"fragment 1"), (u"b2", u"fragment 2"),
                  (u"c3", u"fragment 3"), (u"d4", u"fragment 4"),
                  (u"e5", u"fragment 5")]
     tfl.read_from_list_with_ids(text_list)
     self.assertEqual(len(tfl), 5)
     self.assertEqual(tfl.chars, 50)
예제 #3
0
 def test_read_from_list_with_ids(self):
     tfl = TextFile()
     text_list = [
         ["a1", "fragment 1"],
         ["b2", "fragment 2"],
         ["c3", "fragment 3"],
         ["d4", "fragment 4"],
         ["e5", "fragment 5"]
     ]
     tfl.read_from_list_with_ids(text_list)
     self.assertEqual(len(tfl), 5)
예제 #4
0
 def test_read_from_list_with_ids(self):
     tfl = TextFile()
     text_list = [
         (u"a1", u"fragment 1"),
         (u"b2", u"fragment 2"),
         (u"c3", u"fragment 3"),
         (u"d4", u"fragment 4"),
         (u"e5", u"fragment 5")
     ]
     tfl.read_from_list_with_ids(text_list)
     self.assertEqual(len(tfl), 5)
     self.assertEqual(tfl.chars, 50)