Esempio 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)
Esempio 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
Esempio 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