  from nose.tools import assert_equal
  
  
  class TestCompress(object):
  
      def test_compress(self, func):
          assert_equal(func(None), None)
          assert_equal(func(''), '')
          assert_equal(func('AABBCC'), 'AABBCC')
 
</s> remove class TestCompress(object):
 </s> add class TestCompress(unittest.TestCase): </s> remove         assert_equal(func(None), None)
        assert_equal(func(''), '')
        assert_equal(func('ABC'), 'ABC')
        assert_equal(func('AABBCC'), 'AABBCC')
        assert_equal(func('AAABCCDDDDE'), 'A3BC2D4E')
        assert_equal(func('BAAACCDDDD'), 'BA3C2D4')
        assert_equal(func('AAABAACCDDDD'), 'A3BA2C2D4')
 </s> add         self.assertEqual(func(None), None)
        self.assertEqual(func(''), '')
        self.assertEqual(func('AABBCC'), 'AABBCC')
        self.assertEqual(func('AAABCCDDDDE'), 'A3BC2D4E')
        self.assertEqual(func('BAAACCDDDD'), 'BA3C2D4')
        self.assertEqual(func('AAABAACCDDDD'), 'A3BA2C2D4') </s> remove         assert_equal(func(None), None)
        assert_equal(func(''), '')
        assert_equal(func('AABBCC'), 'AABBCC')
        assert_equal(func('AAABCCDDDD'), 'A3BCCD4')
        assert_equal(func('aaBCCEFFFFKKMMMMMMP taaammanlaarrrr seeeeeeeeek tooo'), 'aaBCCEF4KKM6P ta3mmanlaar4 se9k to3')
 </s> add         self.assertEqual(func(None), None)
        self.assertEqual(func(''), '')
        self.assertEqual(func('AABBCC'), 'AABBCC')
        self.assertEqual(func('AAABCCDDDD'), 'A3BCCD4')
        self.assertEqual(
            func('aaBCCEFFFFKKMMMMMMP taaammanlaarrrr seeeeeeeeek tooo'),
            'aaBCCEF4KKM6P ta3mmanlaar4 se9k to3',
        ) </s> remove from nose.tools import assert_equal
 </s> add import unittest </s> remove from nose.tools import assert_equal
 </s> add import unittest
class TestCompress(unittest.TestCase):
  from nose.tools import assert_equal
  
  
class TestCompress(unittest.TestCase):
  
      def test_compress(self, func):
          assert_equal(func(None), None)
          assert_equal(func(''), '')
          assert_equal(func('AABBCC'), 'AABBCC')
keep keep keep replace keep keep keep keep keep
 #273: Remove nose dependency for arrays_strings/ (#274) 
arrays_strings/compress_alt/test_compress.py