  class TestLongestCommonSubstr(object):
  
      def test_longest_common_substr(self):
          str_comp = StringCompare()
          assert_raises(TypeError, str_comp.longest_common_substr, None, None)
          assert_equal(str_comp.longest_common_substr('', ''), '')
          str0 = 'ABCDEFGHIJ'
          str1 = 'FOOBCDBCDE'
          expected = 'BCDE'
          assert_equal(str_comp.longest_common_substr(str0, str1), expected)
          print('Success: test_longest_common_substr')
 
</s> remove         assert_equal(str_comp.longest_common_substr(str0, str1), expected)
 </s> add         self.assertEqual(str_comp.longest_common_substr(str0, str1), expected) </s> remove         assert_raises(TypeError, str_comp.longest_common_subseq, None, None)
        assert_equal(str_comp.longest_common_subseq('', ''), '')
 </s> add         self.assertRaises(TypeError, str_comp.longest_common_subseq, None, None)
        self.assertEqual(str_comp.longest_common_subseq('', ''), '') </s> remove class TestLongestCommonSubstr(object):
 </s> add class TestLongestCommonSubstr(unittest.TestCase): </s> remove         assert_equal(str_comp.longest_common_subseq(str0, str1), expected)
 </s> add         self.assertEqual(str_comp.longest_common_subseq(str0, str1), expected) </s> remove     "        assert_raises(TypeError, str_comp.longest_common_substr, None, None)\n",
    "        assert_equal(str_comp.longest_common_substr('', ''), '')\n",
 </s> add     "        self.assertRaises(TypeError, str_comp.longest_common_substr, None, None)\n",
    "        self.assertEqual(str_comp.longest_common_substr('', ''), '')\n",
        self.assertRaises(TypeError, str_comp.longest_common_substr, None, None)
        self.assertEqual(str_comp.longest_common_substr('', ''), '')
  class TestLongestCommonSubstr(object):
  
      def test_longest_common_substr(self):
          str_comp = StringCompare()
        self.assertRaises(TypeError, str_comp.longest_common_substr, None, None)
        self.assertEqual(str_comp.longest_common_substr('', ''), '')
        self.assertRaises(TypeError, str_comp.longest_common_substr, None, None)
        self.assertEqual(str_comp.longest_common_substr('', ''), '')
          str0 = 'ABCDEFGHIJ'
          str1 = 'FOOBCDBCDE'
          expected = 'BCDE'
          assert_equal(str_comp.longest_common_substr(str0, str1), expected)
          print('Success: test_longest_common_substr')
keep keep keep keep replace replace keep keep keep keep keep
 #273: Remove nose dependency for recursion_dynamic/ (#280) 
recursion_dynamic/longest_substring/test_longest_common_substr.py