Beispiel #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']
Beispiel #4
0
def test_split_input_empty():
    """grouptools.split: an empty input returns []."""
    nt.assert_equal(grouptools.split(''), [])
Beispiel #5
0
 def __call__(self, name, _):
     if 'vs_in' in grouptools.split(name):
         # 20%
         return self.random.random() <= .2
     return True
Beispiel #6
0
 def __call__(self, name, _):
     if 'vs_in' in grouptools.split(name):
         # 20%
         return self.random.random() <= .2
     return True