  class TestRansomNote(object):
  
      def test_ransom_note(self):
          solution = Solution()
          assert_raises(TypeError, solution.match_note_to_magazine, None, None)
          assert_equal(solution.match_note_to_magazine('', ''), True)
          assert_equal(solution.match_note_to_magazine('a', 'b'), False)
          assert_equal(solution.match_note_to_magazine('aa', 'ab'), False)
          assert_equal(solution.match_note_to_magazine('aa', 'aab'), True)
          print('Success: test_ransom_note')
  
  
  def main():
      test = TestRansomNote()
 
</s> remove class TestRansomNote(object):
 </s> add class TestRansomNote(unittest.TestCase): </s> remove         assert_raises(TypeError, solution.can_win_nim, None)
        assert_equal(solution.can_win_nim(1), True)
        assert_equal(solution.can_win_nim(2), True)
        assert_equal(solution.can_win_nim(3), True)
        assert_equal(solution.can_win_nim(4), False)
        assert_equal(solution.can_win_nim(7), True)
        assert_equal(solution.can_win_nim(40), False)
 </s> add         self.assertRaises(TypeError, solution.can_win_nim, None)
        self.assertEqual(solution.can_win_nim(1), True)
        self.assertEqual(solution.can_win_nim(2), True)
        self.assertEqual(solution.can_win_nim(3), True)
        self.assertEqual(solution.can_win_nim(4), False)
        self.assertEqual(solution.can_win_nim(7), True)
        self.assertEqual(solution.can_win_nim(40), False) </s> remove     "        assert_raises(TypeError, solution.match_note_to_magazine, None, None)\n",
    "        assert_equal(solution.match_note_to_magazine('', ''), True)\n",
    "        assert_equal(solution.match_note_to_magazine('a', 'b'), False)\n",
    "        assert_equal(solution.match_note_to_magazine('aa', 'ab'), False)\n",
    "        assert_equal(solution.match_note_to_magazine('aa', 'aab'), True)\n",
 </s> add     "        self.assertRaises(TypeError, solution.match_note_to_magazine, None, None)\n",
    "        self.assertEqual(solution.match_note_to_magazine('', ''), True)\n",
    "        self.assertEqual(solution.match_note_to_magazine('a', 'b'), False)\n",
    "        self.assertEqual(solution.match_note_to_magazine('aa', 'ab'), False)\n",
    "        self.assertEqual(solution.match_note_to_magazine('aa', 'aab'), True)\n", </s> remove     "        assert_raises(TypeError, solution.match_note_to_magazine, None, None)\n",
    "        assert_equal(solution.match_note_to_magazine('', ''), True)\n",
    "        assert_equal(solution.match_note_to_magazine('a', 'b'), False)\n",
    "        assert_equal(solution.match_note_to_magazine('aa', 'ab'), False)\n",
    "        assert_equal(solution.match_note_to_magazine('aa', 'aab'), True)\n",
 </s> add     "        self.assertRaises(TypeError, solution.match_note_to_magazine, None, None)\n",
    "        self.assertEqual(solution.match_note_to_magazine('', ''), True)\n",
    "        self.assertEqual(solution.match_note_to_magazine('a', 'b'), False)\n",
    "        self.assertEqual(solution.match_note_to_magazine('aa', 'ab'), False)\n",
    "        self.assertEqual(solution.match_note_to_magazine('aa', 'aab'), True)\n", </s> remove class TestSolution(object):
 </s> add class TestSolution(unittest.TestCase):
        self.assertRaises(TypeError, solution.match_note_to_magazine, None, None)
        self.assertEqual(solution.match_note_to_magazine('', ''), True)
        self.assertEqual(solution.match_note_to_magazine('a', 'b'), False)
        self.assertEqual(solution.match_note_to_magazine('aa', 'ab'), False)
        self.assertEqual(solution.match_note_to_magazine('aa', 'aab'), True)
  class TestRansomNote(object):
  
      def test_ransom_note(self):
          solution = Solution()
        self.assertRaises(TypeError, solution.match_note_to_magazine, None, None)
        self.assertEqual(solution.match_note_to_magazine('', ''), True)
        self.assertEqual(solution.match_note_to_magazine('a', 'b'), False)
        self.assertEqual(solution.match_note_to_magazine('aa', 'ab'), False)
        self.assertEqual(solution.match_note_to_magazine('aa', 'aab'), True)
        self.assertRaises(TypeError, solution.match_note_to_magazine, None, None)
        self.assertEqual(solution.match_note_to_magazine('', ''), True)
        self.assertEqual(solution.match_note_to_magazine('a', 'b'), False)
        self.assertEqual(solution.match_note_to_magazine('aa', 'ab'), False)
        self.assertEqual(solution.match_note_to_magazine('aa', 'aab'), True)
        self.assertRaises(TypeError, solution.match_note_to_magazine, None, None)
        self.assertEqual(solution.match_note_to_magazine('', ''), True)
        self.assertEqual(solution.match_note_to_magazine('a', 'b'), False)
        self.assertEqual(solution.match_note_to_magazine('aa', 'ab'), False)
        self.assertEqual(solution.match_note_to_magazine('aa', 'aab'), True)
        self.assertRaises(TypeError, solution.match_note_to_magazine, None, None)
        self.assertEqual(solution.match_note_to_magazine('', ''), True)
        self.assertEqual(solution.match_note_to_magazine('a', 'b'), False)
        self.assertEqual(solution.match_note_to_magazine('aa', 'ab'), False)
        self.assertEqual(solution.match_note_to_magazine('aa', 'aab'), True)
        self.assertRaises(TypeError, solution.match_note_to_magazine, None, None)
        self.assertEqual(solution.match_note_to_magazine('', ''), True)
        self.assertEqual(solution.match_note_to_magazine('a', 'b'), False)
        self.assertEqual(solution.match_note_to_magazine('aa', 'ab'), False)
        self.assertEqual(solution.match_note_to_magazine('aa', 'aab'), True)
          print('Success: test_ransom_note')
  
  
  def main():
      test = TestRansomNote()
keep keep keep keep replace replace replace replace replace keep keep keep keep keep
 #273: Remove nose dependency for online_judges/ (#282) 
online_judges/ransom_note/test_ransom_note.py