From 52e9d5d5312362c85093d66464ce995dae4c7d50 Mon Sep 17 00:00:00 2001 From: Dave Abrahams Date: Sun, 12 Nov 2000 22:39:52 +0000 Subject: [PATCH] Added new tests [SVN r8196] --- test_extclass.py | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/test_extclass.py b/test_extclass.py index 640bef8f..bacd9a3a 100644 --- a/test_extclass.py +++ b/test_extclass.py @@ -906,6 +906,19 @@ test methodologies for wrapping functions that return a pointer In this methodology, the referent is copied >>> get_record() == get_record() 0 + +======== Enums and non-method class attributes ============== + >>> eo = EnumOwner(EnumOwner.one, EnumOwner.two) + >>> eo.first + 1 + >>> eo.second + 2 + >>> eo.first = EnumOwner.three + >>> eo.second = EnumOwner.one + >>> eo.first + 3 + >>> eo.second + 1 ''' from demo import *