futureized tests
This commit is contained in:
@@ -1,4 +1,9 @@
|
||||
from statements import *
|
||||
from __future__ import absolute_import
|
||||
from __future__ import division
|
||||
from __future__ import print_function
|
||||
from __future__ import unicode_literals
|
||||
|
||||
from .statements import *
|
||||
|
||||
nu = datetime.datetime.now()
|
||||
|
||||
@@ -138,9 +143,9 @@ class TeamTest(TestCase):
|
||||
if 'rowers' in u and 'http' not in u and 'authorize' not in u and 'import' not in u and 'logout' not in u:
|
||||
response = self.c.get(u)
|
||||
if response.status_code not in [200,302]:
|
||||
print url
|
||||
print u
|
||||
print response.status_code
|
||||
print(url)
|
||||
print(u)
|
||||
print(response.status_code)
|
||||
self.assertIn(response.status_code,[200,302])
|
||||
|
||||
login = self.c.login(username=self.users[1].username,
|
||||
@@ -157,9 +162,9 @@ class TeamTest(TestCase):
|
||||
if 'rowers' in u and 'http' not in u and 'authorize' not in u and 'import' not in u and 'logout' not in u:
|
||||
response = self.c.get(u)
|
||||
if response.status_code not in [200,302]:
|
||||
print url
|
||||
print u
|
||||
print response.status_code
|
||||
print(url)
|
||||
print(u)
|
||||
print(response.status_code)
|
||||
self.assertIn(response.status_code,[200,302])
|
||||
|
||||
def test_teamsview_manager(self):
|
||||
@@ -179,9 +184,9 @@ class TeamTest(TestCase):
|
||||
if 'rowers' in u and 'http' not in u and 'authorize' not in u and 'import' not in u and 'logout' not in u:
|
||||
response = self.c.get(u)
|
||||
if response.status_code not in [200,302]:
|
||||
print url
|
||||
print u
|
||||
print response.status_code
|
||||
print(url)
|
||||
print(u)
|
||||
print(response.status_code)
|
||||
self.assertIn(response.status_code,[200,302])
|
||||
|
||||
def test_teamview_member_request(self):
|
||||
|
||||
Reference in New Issue
Block a user