old_contents: from sure import expect
  
  from social.actions import do_disconnect
  from social.exceptions import NotAllowedToDisconnect
  
  from tests.models import User
  from tests.actions.actions_tests import BaseActionTest
  
  
  class LoginActionTest(BaseActionTest):
      def test_not_allowed_to_disconnect(self):
          self.do_login()
          user = User.get(self.expected_username)
          do_disconnect.when.called_with(self.strategy, user).should.throw(
              NotAllowedToDisconnect
          )
  
      def test_disconnect(self):
          self.do_login()
          user = User.get(self.expected_username)
          user.password = 'password'
          do_disconnect(self.strategy, user)
          expect(len(user.social)).to.equal(0)
  
new_contents: from sure import expect
  
  from social.actions import do_disconnect
  from social.exceptions import NotAllowedToDisconnect
  
  from tests.models import User
  from tests.actions.actions_tests import BaseActionTest
  
  
  class DisconnectActionTest(BaseActionTest):
      def test_not_allowed_to_disconnect(self):
          self.do_login()
          user = User.get(self.expected_username)
          do_disconnect.when.called_with(self.strategy, user).should.throw(
              NotAllowedToDisconnect
          )
  
      def test_disconnect(self):
          self.do_login()
          user = User.get(self.expected_username)
          user.password = 'password'
          do_disconnect(self.strategy, user)
          expect(len(user.social)).to.equal(0)
  
subject: Fix test name