コード例 #1
0
 def test_merge_multiple_columns(self):
     self.assertEqual(
         list(
             m.merge_fields(self.input_items,
                            constituents=["a", "b"],
                            new_fieldname="d")),
         [["c", "d"], ["dolor", "lorem ipsum"],
          ["consectetuer", "sit amet"]])
コード例 #2
0
 def test_merge_single_column(self):
     self.assertEqual(
         list(
             m.merge_fields(self.input_items,
                            constituents=["a"],
                            new_fieldname="d")),
         [["b", "c", "d"], ["ipsum", "dolor", "lorem"],
          ["amet", "consectetuer", "sit"]])
コード例 #3
0
 def test_merge_multiple_columns(self):
     self.assertEqual(
         list(m.merge_fields(
                 self.input_items,
                 constituents=["a", "b"],
                 new_fieldname="d")),
         [["c", "d"],
          ["dolor", "lorem ipsum"],
          ["consectetuer", "sit amet"]])
コード例 #4
0
 def test_merge_single_column(self):
     self.assertEqual(
         list(m.merge_fields(
                 self.input_items,
                 constituents=["a"],
                 new_fieldname="d")),
         [["b", "c", "d"],
          ["ipsum", "dolor", "lorem"],
          ["amet", "consectetuer", "sit"]])