  
  class TestRotation(object):
  
      def test_rotation(self):
          assert_equal(is_rotation('o', 'oo'), False)
          assert_equal(is_rotation(None, 'foo'), False)
          assert_equal(is_rotation('', 'foo'), False)
          assert_equal(is_rotation('', ''), True)
          assert_equal(is_rotation('foobarbaz', 'barbazfoo'), True)
          print('Success: test_rotation')
  
  
  def main():
      test = TestRotation()
 
</s> remove     "        assert_equal(is_rotation('o', 'oo'), False)\n",
    "        assert_equal(is_rotation(None, 'foo'), False)\n",
    "        assert_equal(is_rotation('', 'foo'), False)\n",
    "        assert_equal(is_rotation('', ''), True)\n",
    "        assert_equal(is_rotation('foobarbaz', 'barbazfoo'), True)\n",
 </s> add     "        rotation = Rotation()\n",
    "        assert_equal(rotation.is_rotation('o', 'oo'), False)\n",
    "        assert_equal(rotation.is_rotation(None, 'foo'), False)\n",
    "        assert_equal(rotation.is_rotation('', 'foo'), False)\n",
    "        assert_equal(rotation.is_rotation('', ''), True)\n",
    "        assert_equal(rotation.is_rotation('foobarbaz', 'barbazfoo'), True)\n", </s> remove     "        assert_equal(is_rotation('o', 'oo'), False)\n",
    "        assert_equal(is_rotation(None, 'foo'), False)\n",
    "        assert_equal(is_rotation('', 'foo'), False)\n",
    "        assert_equal(is_rotation('', ''), True)\n",
    "        assert_equal(is_rotation('foobarbaz', 'barbazfoo'), True)\n",
 </s> add     "        rotation = Rotation()\n",
    "        assert_equal(rotation.is_rotation('o', 'oo'), False)\n",
    "        assert_equal(rotation.is_rotation(None, 'foo'), False)\n",
    "        assert_equal(rotation.is_rotation('', 'foo'), False)\n",
    "        assert_equal(rotation.is_rotation('', ''), True)\n",
    "        assert_equal(rotation.is_rotation('foobarbaz', 'barbazfoo'), True)\n", </s> remove     "def is_rotation(s1, s2):\n",
    "    # TODO: Implement me\n",
    "    # Call is_substring only once\n",
    "    pass"
 </s> add     "    def is_rotation(self, s1, s2):\n",
    "        # TODO: Implement me\n",
    "        # Call is_substring only once\n",
    "        pass"
        rotation = Rotation()
        assert_equal(rotation.is_rotation('o', 'oo'), False)
        assert_equal(rotation.is_rotation(None, 'foo'), False)
        assert_equal(rotation.is_rotation('', 'foo'), False)
        assert_equal(rotation.is_rotation('', ''), True)
        assert_equal(rotation.is_rotation('foobarbaz', 'barbazfoo'), True)
  
  class TestRotation(object):
  
      def test_rotation(self):
        rotation = Rotation()
        assert_equal(rotation.is_rotation('o', 'oo'), False)
        assert_equal(rotation.is_rotation(None, 'foo'), False)
        assert_equal(rotation.is_rotation('', 'foo'), False)
        assert_equal(rotation.is_rotation('', ''), True)
        assert_equal(rotation.is_rotation('foobarbaz', 'barbazfoo'), True)
        rotation = Rotation()
        assert_equal(rotation.is_rotation('o', 'oo'), False)
        assert_equal(rotation.is_rotation(None, 'foo'), False)
        assert_equal(rotation.is_rotation('', 'foo'), False)
        assert_equal(rotation.is_rotation('', ''), True)
        assert_equal(rotation.is_rotation('foobarbaz', 'barbazfoo'), True)
        rotation = Rotation()
        assert_equal(rotation.is_rotation('o', 'oo'), False)
        assert_equal(rotation.is_rotation(None, 'foo'), False)
        assert_equal(rotation.is_rotation('', 'foo'), False)
        assert_equal(rotation.is_rotation('', ''), True)
        assert_equal(rotation.is_rotation('foobarbaz', 'barbazfoo'), True)
        rotation = Rotation()
        assert_equal(rotation.is_rotation('o', 'oo'), False)
        assert_equal(rotation.is_rotation(None, 'foo'), False)
        assert_equal(rotation.is_rotation('', 'foo'), False)
        assert_equal(rotation.is_rotation('', ''), True)
        assert_equal(rotation.is_rotation('foobarbaz', 'barbazfoo'), True)
        rotation = Rotation()
        assert_equal(rotation.is_rotation('o', 'oo'), False)
        assert_equal(rotation.is_rotation(None, 'foo'), False)
        assert_equal(rotation.is_rotation('', 'foo'), False)
        assert_equal(rotation.is_rotation('', ''), True)
        assert_equal(rotation.is_rotation('foobarbaz', 'barbazfoo'), True)
          print('Success: test_rotation')
  
  
  def main():
      test = TestRotation()
keep keep keep keep replace replace replace replace replace keep keep keep keep keep
 Move string rotation to a class 
arrays_strings/rotation/test_rotation.py