def test_has_space(self): stack = Stack(1) self.assertEqual(stack.has_space(), True) stack.push(5) self.assertEqual(stack.has_space(), False)