Ejemplo n.º 1
0
 def feature_handler(self, cmd):
     """Process a FeatureCommand."""
     feature = cmd.feature_name
     if feature not in commands.FEATURE_NAMES:
         raise plugin_errors.UnknownFeature(feature)
Ejemplo n.º 2
0
 def feature_handler(self, cmd):
     """Process a FeatureCommand."""
     raise fastimport_errors.UnknownFeature(cmd.feature_name)
Ejemplo n.º 3
0
 def test_UnknownFeature(self):
     e = errors.UnknownFeature('aaa')
     self.assertEqual(
         "Unknown feature 'aaa' - try a later importer or "
         "an earlier data format", str(e))