def METHOD_NAME(self):
    """Test that source must be a directory"""
    s = self.createImportScm({"url":self.fn})
    with tempfile.TemporaryDirectory() as workspace:
        with self.assertRaises(InvocationError):
            self.invokeScm(workspace, s)
        with self.assertRaises(BuildError):
            self.invokeScm(workspace, ImportScm(s.getProperties(True)))