def test_anonymousSTOR(self):
        """
        Try to make an STOR as anonymous, and check that we got a permission
        denied error.
        """
        def eb(res):
            res.trap(ftp.CommandFailed)
            self.assertEqual(res.value.args[0][0],
                '550 foo: Permission denied.')
        d1, d2 = self.client.storeFile('foo')
        d2.addErrback(eb)
        return defer.gatherResults([d1, d2])

        Try to make an STOR as anonymous, and check that we got a permission
        denied error.
        
stackoverflow/venv/lib/python3.6/site-packages/twisted/test/test_ftp.py