def test_empty_stack(self): stack = StackWithMin() self.assertTrue(stack.is_empty()) with self.assertRaises(Stack.Empty): stack.pop() with self.assertRaises(Stack.Empty): stack.peek() with self.assertRaises(Stack.Empty): stack.min()