Esempio n. 1
0
 def __init__(self, local_repo_name, remote_repo_name=None, 
              series='trusty', ask=False, remote_prefix=None):
     ucltip.regcmds('bzr')
     self.series = series
     self.local_repo = local_repo_name
     self.remote_repo = local_repo_name if remote_repo_name is None else remote_repo_name
     self.remote_prefix = remote_prefix
     self.ask = ask
Esempio n. 2
0
# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
# FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
# DEALINGS IN THE SOFTWARE.
import unittest
import ucltip

from boliau import actionlib

import test

ucltip.regcmds('echo',
               'boliau-readstdin',
               'boliau-lines',
               'boliau-concat',
               'boliau-map',
               'boliau-filter',
               'boliau-py-call')

class SequenceTestCase(test.CmdTestCase):

    def test_lines_without_sep(self):
        acc = 'a\nb\nc'
        self.set(acc)
        self.pipe.add(boliau_lines)
        self.assertEquals(acc.split(), self.read())

        self.reset()
        acc = 'a,b,c'
        self.set(acc)
Esempio n. 3
0
 def _regcmds(self, *args, **kwargs):
     for cmd in args:
         if cmd not in self._cmds:
             self._cmds.append(ucltip.undashify(cmd))
     ucltip.regcmds(*args, **kwargs)
Esempio n. 4
0
 def _regcmds(self, *args, **kwargs):
     for cmd in args:
         if cmd not in self._cmds:
             self._cmds.append(ucltip.undashify(cmd))
     ucltip.regcmds(*args, **kwargs)