Ejemplo n.º 1
0
 def test_alias_sub(self):
     seriesList = self._generate_series_list()
     substitution = "Shrubbery"
     results = functions.aliasSub({}, seriesList, "^\w+", substitution)
     for series in results:
         self.assertTrue(series.name.startswith(substitution),
                 "aliasSub should replace the name with {0}".format(substitution),
         )
Ejemplo n.º 2
0
 def test_alias_sub(self):
     seriesList = self._generate_series_list()
     substitution = "Shrubbery"
     results = functions.aliasSub({}, seriesList, "^\w+", substitution)
     for series in results:
         self.assertTrue(series.name.startswith(substitution),
                 "aliasSub should replace the name with {0}".format(substitution),
         )