Пример #1
0
    def test_isunauthenticated(self):
        def dummy():
            pass

        self.assertFalse(utils.isunauthenticated(dummy))
        utils.unauthenticated(dummy)
        self.assertTrue(utils.isunauthenticated(dummy))
Пример #2
0
    def test_isunauthenticated(self):
        def dummy():
            pass

        self.assertFalse(utils.isunauthenticated(dummy))
        utils.unauthenticated(dummy)
        self.assertTrue(utils.isunauthenticated(dummy))
Пример #3
0
 def test_unauthenticated(self):
     def dummy():
         pass
     utils.unauthenticated(dummy)
     self.assertTrue(hasattr(dummy, "unauthenticated"))
Пример #4
0
    def test_unauthenticated(self):
        def dummy():
            pass

        utils.unauthenticated(dummy)
        self.assertTrue(hasattr(dummy, "unauthenticated"))