  from nose.tools import assert_equal, assert_raises
  
  
  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('', ''), '')
 
</s> remove         assert_raises(TypeError, str_comp.longest_common_substr, None, None)
        assert_equal(str_comp.longest_common_substr('', ''), '')
 </s> add         self.assertRaises(TypeError, str_comp.longest_common_substr, None, None)
        self.assertEqual(str_comp.longest_common_substr('', ''), '') </s> remove class TestLongestCommonSubseq(object):
 </s> add class TestLongestCommonSubseq(unittest.TestCase): </s> remove from nose.tools import assert_equal, assert_raises
 </s> add import unittest </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):\n",
 </s> add     "class TestLongestCommonSubstr(unittest.TestCase):\n",
class TestLongestCommonSubstr(unittest.TestCase):
  from nose.tools import assert_equal, assert_raises
  
  
class TestLongestCommonSubstr(unittest.TestCase):
  
      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('', ''), '')
keep keep keep replace keep keep keep keep keep
 #273: Remove nose dependency for recursion_dynamic/ (#280) 
recursion_dynamic/longest_substring/test_longest_common_substr.py