Python app.models.AnonymousUser() Examples

The following are 10 code examples of app.models.AnonymousUser(). You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may also want to check out all available functions/classes of the module app.models , or try the search function .
Example #1
Source File: test_user_model.py    From circleci-demo-python-flask with MIT License 5 votes vote down vote up
def test_anonymous_user(self):
        u = AnonymousUser()
        self.assertFalse(u.can(Permission.FOLLOW)) 
Example #2
Source File: test_user_model.py    From Simpleblog with MIT License 5 votes vote down vote up
def test_anonymous_user(self):
        u = AnonymousUser()
        self.assertFalse(u.operation(Permission.FOLLOW)) 
Example #3
Source File: test_user_model.py    From BhagavadGita with GNU General Public License v3.0 5 votes vote down vote up
def test_anonymous(self):
        u = AnonymousUser()
        self.assertFalse(u.can(Permission.GENERAL)) 
Example #4
Source File: test_models.py    From nomad with Apache License 2.0 5 votes vote down vote up
def test_anonymous_user_has_no_ride_request(self):
        carpool = CarpoolFactory()
        anonymous = AnonymousUser()
        assert anonymous.get_ride_request_in_carpool(carpool) == None 
Example #5
Source File: test_models.py    From nomad with Apache License 2.0 5 votes vote down vote up
def test_anonymous_user_is_not_driver(self):
        carpool = CarpoolFactory()
        anonymous = AnonymousUser()
        assert anonymous.is_driver(carpool) == False 
Example #6
Source File: test_user_model.py    From penn-club-ratings with MIT License 5 votes vote down vote up
def test_anonymous(self):
        u = AnonymousUser()
        self.assertFalse(u.can(Permission.GENERAL)) 
Example #7
Source File: test_user_model.py    From flasky-first-edition with MIT License 5 votes vote down vote up
def test_anonymous_user(self):
        u = AnonymousUser()
        self.assertFalse(u.can(Permission.FOLLOW)) 
Example #8
Source File: test_user_model.py    From flask-base with MIT License 5 votes vote down vote up
def test_anonymous(self):
        u = AnonymousUser()
        self.assertFalse(u.can(Permission.GENERAL)) 
Example #9
Source File: test_user_model.py    From flasky-with-celery with MIT License 5 votes vote down vote up
def test_anonymous_user(self):
        u = AnonymousUser()
        self.assertFalse(u.can(Permission.FOLLOW)) 
Example #10
Source File: test_user_model.py    From flask-blog with MIT License 5 votes vote down vote up
def test_anonymous_user(self):
        u = AnonymousUser()
        self.assertFalse(u.can(Permission.COMMENT))