1
0
mirror of https://github.com/ansible/awx.git synced 2024-10-30 05:25:29 +03:00

Remove some prints

This commit is contained in:
Michael DeHaan 2013-04-04 12:10:00 -04:00
parent d1f2f871e7
commit 5087db5a7f
2 changed files with 2 additions and 5 deletions

View File

@ -133,7 +133,6 @@ class UserHelper(object):
print "N1"
return False
rc = cls.can_user_administrate(user, obj)
print "N2: %s" % rc
return rc
class PrimordialModel(models.Model):

View File

@ -282,9 +282,8 @@ class ProjectsTest(BaseTest):
other_creds = '/api/v1/users/%s/credentials/' % other.pk
team_creds = '/api/v1/teams/%s/credentials/' % team.pk
print "ORGS=%s", other.organizations.all()
for x in other.organizations.all():
print x.admins.all()
#for x in other.organizations.all():
# print x.admins.all()
new_credentials = dict(
name = 'credential',
@ -300,7 +299,6 @@ class ProjectsTest(BaseTest):
self.post(other_creds, data=new_credentials, expect=401)
self.post(other_creds, data=new_credentials, expect=401, auth=self.get_invalid_credentials())
self.post(other_creds, data=new_credentials, expect=201, auth=self.get_super_credentials())
print "TEST NOW"
self.post(other_creds, data=new_credentials, expect=201, auth=self.get_normal_credentials())
self.post(other_creds, data=new_credentials, expect=201, auth=self.get_other_credentials())
self.post(other_creds, data=new_credentials, expect=403, auth=self.get_nobody_credentials())