Ejemplo n.º 1
0
 def test_str(self):
     table = data.Table.from_file("iris")
     imputer = impute.BaseImputeMethod()
     var = table.domain[0]
     self.assertIn(var.name, imputer.format_variable(var))
     self.assertIn(imputer.short_name, imputer.format_variable(var))
     self.assertIn(imputer.name, str(imputer))
Ejemplo n.º 2
0
 def test_copy(self):
     imputer = impute.BaseImputeMethod()
     self.assertIs(imputer, imputer.copy())