def liclear_unit_test(self): temp = LinkedStack() for count in range(4): temp.push(count+1) temp.clear() self.assertEqual(temp.isEmpty(), True)