def test_login_anonymously(self):
        if sys.version_info < (2, 7):
            self.assertRaises(SmugMugException, lambda: self.smugmug.login_anonymously())
        else:
            with self.assertRaises(SmugMugException):
                self.smugmug.login_anonymously()
dataset/ETHPy150Open chrishoffman/smugpy/tests/test_login.py/TestLogin130.test_login_anonymously/original