  class TestAnagrams(object):
  
      def test_group_anagrams(self):
          anagram = Anagram()
          assert_raises(TypeError, anagram.group_anagrams, None)
          data = ['ram', 'act', 'arm', 'bat', 'cat', 'tab']
          expected = ['ram', 'arm', 'act', 'cat', 'bat', 'tab']
          assert_equal(anagram.group_anagrams(data), expected)
  
          print('Success: test_group_anagrams')
 
</s> remove         assert_equal(anagram.group_anagrams(data), expected)
 </s> add         self.assertEqual(anagram.group_anagrams(data), expected) </s> remove class TestAnagrams(object):
 </s> add class TestAnagrams(unittest.TestCase): </s> remove     "        assert_equal(anagram.group_anagrams(data), expected)\n",
 </s> add     "        self.assertEqual(anagram.group_anagrams(data), expected)\n", </s> remove     "        assert_equal(anagram.group_anagrams(data), expected)\n",
 </s> add     "        self.assertEqual(anagram.group_anagrams(data), expected)\n", </s> remove     "        assert_raises(TypeError, anagram.group_anagrams, None)\n",
 </s> add     "        self.assertRaises(TypeError, anagram.group_anagrams, None)\n",
        self.assertRaises(TypeError, anagram.group_anagrams, None)
  class TestAnagrams(object):
  
      def test_group_anagrams(self):
          anagram = Anagram()
        self.assertRaises(TypeError, anagram.group_anagrams, None)
          data = ['ram', 'act', 'arm', 'bat', 'cat', 'tab']
          expected = ['ram', 'arm', 'act', 'cat', 'bat', 'tab']
          assert_equal(anagram.group_anagrams(data), expected)
  
          print('Success: test_group_anagrams')
keep keep keep keep replace keep keep keep keep keep
 #273: Remove nose dependency for sorting_searching/ (#278) 
sorting_searching/anagrams/test_anagrams.py