  class TestPermutations(object):
  
      def test_permutations(self):
          permutations = Permutations()
          assert_equal(permutations.find_permutations(None), None)
          assert_equal(permutations.find_permutations(''), '')
          string = 'AABC'
          expected = [
              'AABC', 'AACB', 'ABAC', 'ABCA',
              'ACAB', 'ACBA', 'BAAC', 'BACA',
              'BCAA', 'CAAB', 'CABA', 'CBAA'
 
</s> remove         assert_equal(permutations.find_permutations(string), expected)
 </s> add         self.assertEqual(permutations.find_permutations(string), expected) </s> remove     "        assert_equal(permutations.find_permutations(None), None)\n",
    "        assert_equal(permutations.find_permutations(''), '')\n",
 </s> add     "        self.assertEqual(permutations.find_permutations(None), None)\n",
    "        self.assertEqual(permutations.find_permutations(''), '')\n", </s> remove     "        assert_equal(permutations.find_permutations(None), None)\n",
    "        assert_equal(permutations.find_permutations(''), '')\n",
 </s> add     "        self.assertEqual(permutations.find_permutations(None), None)\n",
    "        self.assertEqual(permutations.find_permutations(''), '')\n", </s> remove class TestPermutations(object):
 </s> add class TestPermutations(unittest.TestCase): </s> remove     "        assert_equal(permutations.find_permutations(string), expected)\n",
 </s> add     "        self.assertEqual(permutations.find_permutations(string), expected)\n",
        self.assertEqual(permutations.find_permutations(None), None)
        self.assertEqual(permutations.find_permutations(''), '')
  class TestPermutations(object):
  
      def test_permutations(self):
          permutations = Permutations()
        self.assertEqual(permutations.find_permutations(None), None)
        self.assertEqual(permutations.find_permutations(''), '')
        self.assertEqual(permutations.find_permutations(None), None)
        self.assertEqual(permutations.find_permutations(''), '')
          string = 'AABC'
          expected = [
              'AABC', 'AACB', 'ABAC', 'ABCA',
              'ACAB', 'ACBA', 'BAAC', 'BACA',
              'BCAA', 'CAAB', 'CABA', 'CBAA'
keep keep keep keep replace replace keep keep keep keep keep
 #273: Remove nose dependency for recursion_dynamic/ (#280) 
recursion_dynamic/permutations/test_permutations.py