def test_no_api_key(self):
        if sys.version_info < (2, 7):
            self.assertRaises(SmugMugException, lambda: SmugMug())
        else:
            with self.assertRaises(SmugMugException):
                SmugMug()
dataset/ETHPy150Open chrishoffman/smugpy/tests/test_setup.py/TestSetup.test_no_api_key/original