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