This repository has been archived by the owner on Nov 5, 2019. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 430
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
No longer needed since Python 2.6 support has been dropped.
- Loading branch information
Showing
27 changed files
with
117 additions
and
125 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -17,6 +17,7 @@ | |
import os | ||
import tempfile | ||
import time | ||
import unittest | ||
|
||
from google.appengine.api import apiproxy_stub | ||
from google.appengine.api import apiproxy_stub_map | ||
|
@@ -30,7 +31,6 @@ | |
import mock | ||
from six.moves import urllib | ||
from six.moves import urllib_parse | ||
import unittest2 | ||
import webapp2 | ||
from webtest import TestApp | ||
|
||
|
@@ -81,7 +81,7 @@ def __call__(self): | |
return None | ||
|
||
|
||
class TestAppAssertionCredentials(unittest2.TestCase): | ||
class TestAppAssertionCredentials(unittest.TestCase): | ||
account_name = "[email protected]" | ||
signature = "signature" | ||
|
||
|
@@ -266,7 +266,7 @@ class TestFlowModel(db.Model): | |
flow = appengine.FlowProperty() | ||
|
||
|
||
class FlowPropertyTest(unittest2.TestCase): | ||
class FlowPropertyTest(unittest.TestCase): | ||
|
||
def setUp(self): | ||
self.testbed = testbed.Testbed() | ||
|
@@ -305,7 +305,7 @@ class TestCredentialsModel(db.Model): | |
credentials = appengine.CredentialsProperty() | ||
|
||
|
||
class CredentialsPropertyTest(unittest2.TestCase): | ||
class CredentialsPropertyTest(unittest.TestCase): | ||
|
||
def setUp(self): | ||
self.testbed = testbed.Testbed() | ||
|
@@ -359,7 +359,7 @@ def test_validate(self): | |
appengine.CredentialsProperty().validate(42) | ||
|
||
|
||
class StorageByKeyNameTest(unittest2.TestCase): | ||
class StorageByKeyNameTest(unittest.TestCase): | ||
|
||
def setUp(self): | ||
self.testbed = testbed.Testbed() | ||
|
@@ -596,7 +596,7 @@ class MockRequestHandler(object): | |
request = MockRequest() | ||
|
||
|
||
class DecoratorTests(unittest2.TestCase): | ||
class DecoratorTests(unittest.TestCase): | ||
|
||
def setUp(self): | ||
self.testbed = testbed.Testbed() | ||
|
@@ -1051,7 +1051,7 @@ def test_invalid_state(self, new_http): | |
new_http.assert_called_once_with() | ||
|
||
|
||
class DecoratorXsrfSecretTests(unittest2.TestCase): | ||
class DecoratorXsrfSecretTests(unittest.TestCase): | ||
"""Test xsrf_secret_key.""" | ||
|
||
def setUp(self): | ||
|
@@ -1100,7 +1100,7 @@ def test_db_insert_ndb_get(self): | |
self.assertEqual(site_key.secret, secret) | ||
|
||
|
||
class DecoratorXsrfProtectionTests(unittest2.TestCase): | ||
class DecoratorXsrfProtectionTests(unittest.TestCase): | ||
"""Test _build_state_value and _parse_state_value.""" | ||
|
||
def setUp(self): | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -16,10 +16,10 @@ | |
|
||
import datetime | ||
import json | ||
import unittest | ||
|
||
import mock | ||
from six.moves import http_client | ||
import unittest2 | ||
|
||
from oauth2client import client | ||
from oauth2client.contrib import _metadata | ||
|
@@ -35,7 +35,7 @@ | |
METADATA_PATH = 'instance/service-accounts/[email protected]/token' | ||
|
||
|
||
class AppAssertionCredentialsTests(unittest2.TestCase): | ||
class AppAssertionCredentialsTests(unittest.TestCase): | ||
|
||
def test_constructor(self): | ||
credentials = gce.AppAssertionCredentials() | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -16,10 +16,10 @@ | |
|
||
import datetime | ||
import threading | ||
import unittest | ||
|
||
import keyring | ||
import mock | ||
import unittest2 | ||
|
||
import oauth2client | ||
from oauth2client import client | ||
|
@@ -29,7 +29,7 @@ | |
__author__ = '[email protected] (Joe Gregorio)' | ||
|
||
|
||
class KeyringStorageTests(unittest2.TestCase): | ||
class KeyringStorageTests(unittest.TestCase): | ||
|
||
def test_constructor(self): | ||
service_name = 'my_unit_test' | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.