Exemple #1
0
    def test_wildcard(self):
        emails = [('*****@*****.**', True),
                  ('*****@*****.**', False)]

        with self.settings(USER_WHITELIST=['^.*?@mozilla\.com$']):
            for email, result in emails:
                eq_(check_whitelist(email), result)
    def test_wildcard(self):
        emails = [('*****@*****.**', True),
                  ('*****@*****.**', False)]

        with self.settings(USER_WHITELIST=['^.*?@mozilla\.com$']):
            for email, result in emails:
                eq_(check_whitelist(email), result)
Exemple #3
0
 def test_none(self):
     with self.settings(USER_WHITELIST=[]):
         eq_(check_whitelist('whatever'), True)
 def test_none(self):
     with self.settings(USER_WHITELIST=[]):
         eq_(check_whitelist('whatever'), True)