  from nose.tools import assert_equal, assert_raises
  
  
  class TestIslandPerimeter(object):
  
      def test_island_perimeter(self):
          solution = Solution()
          assert_raises(TypeError, solution.island_perimeter, None)
          data = [[1, 0]]
 
</s> remove         assert_raises(TypeError, solution.island_perimeter, None)
 </s> add         self.assertRaises(TypeError, solution.island_perimeter, None) </s> remove from nose.tools import assert_equal, assert_raises
 </s> add import unittest </s> remove         assert_equal(solution.island_perimeter(data), expected)
 </s> add         self.assertEqual(solution.island_perimeter(data), expected) </s> remove class TestSolution(object):
 </s> add class TestSolution(unittest.TestCase): </s> remove class TestSolution(object):
 </s> add class TestSolution(unittest.TestCase):
class TestIslandPerimeter(unittest.TestCase):
  from nose.tools import assert_equal, assert_raises
  
  
class TestIslandPerimeter(unittest.TestCase):
  
      def test_island_perimeter(self):
          solution = Solution()
          assert_raises(TypeError, solution.island_perimeter, None)
          data = [[1, 0]]
keep keep keep replace keep keep keep keep keep
 #273: Remove nose dependency for online_judges/ (#282) 
online_judges/island_perimeter/test_island_perimeter.py