def test_isunauthenticated(self): def dummy(): pass self.assertFalse(utils.isunauthenticated(dummy)) utils.unauthenticated(dummy) self.assertTrue(utils.isunauthenticated(dummy))