Ejemplo n.º 1
0
def test_split_input_empty():
    """grouptools.split: an empty input returns []."""
    nt.assert_equal(grouptools.split(''), [])
Ejemplo n.º 2
0
 def test_input_empty(self):
     """grouptools.split: an empty input returns []."""
     assert grouptools.split('') == []
Ejemplo n.º 3
0
 def test_basic(self):
     assert grouptools.split(grouptools.join('g', 't')) == ['g', 't']
Ejemplo n.º 4
0
def test_split_input_empty():
    """grouptools.split: an empty input returns []."""
    nt.assert_equal(grouptools.split(''), [])
Ejemplo n.º 5
0
 def __call__(self, name, _):
     if 'vs_in' in grouptools.split(name):
         # 20%
         return self.random.random() <= .2
     return True
Ejemplo n.º 6
0
 def __call__(self, name, _):
     if 'vs_in' in grouptools.split(name):
         # 20%
         return self.random.random() <= .2
     return True