Exemplo n.º 1
0
 def test_pop_letters(self):
     test_strs = [
         ('1.00', ''),
         ('aaer2r', 'aaer'),
         ('a23', 'a'),
         ('a.2', 'a'),
         ('.a22', '')
     ]
     for test, expect in test_strs:
         test_list = list(test)
         letters = rpm._pop_letters(test_list)
         res = ''.join(letters)
         self.assertEqual(expect, res)
Exemplo n.º 2
0
def test_pop_letters(test, expect):
    """Test that letter blocks are properly popped from strings"""
    test_list = list(test)
    letters = rpm._pop_letters(test_list)
    res = ''.join(letters)
    assert expect == res
Exemplo n.º 3
0
def test_pop_letters(test, expect):
    """Test that letter blocks are properly popped from strings"""
    test_list = list(test)
    letters = rpm._pop_letters(test_list)
    res = ''.join(letters)
    assert expect == res