def test_correct_three(self): string = 'aabcccccaaab' self.assertEqual('a2b1c5a3b1', strcompression.compress(string))
def test_base(self): string = 'x' self.assertEqual('x1', strcompression.compress(string))
def test_correct_two(self): string = 'aabbc' self.assertEqual('a2b2c1', strcompression.compress(string))
def test_empty(self): string = '' self.assertRaises(ValueError, lambda: strcompression.compress(string))