def test_isunauthenticated(self): def dummy(): pass self.assertFalse(utils.isunauthenticated(dummy)) utils.unauthenticated(dummy) self.assertTrue(utils.isunauthenticated(dummy))
def test_unauthenticated(self): def dummy(): pass utils.unauthenticated(dummy) self.assertTrue(hasattr(dummy, "unauthenticated"))