def test_stack_copy(self): """Should create an exact of the PDA stack.""" stack = PDAStack(['a', 'b']) stack_copy = stack.copy() nose.assert_is_not(stack, stack_copy) nose.assert_equal(stack, stack_copy)