I did not have time to go over the implementation of ModelBase class yet but I tried extend my test cases and want to update the progress.
I apply the Carpenter role (in the earlier post) in setUp of all test classes in 2 small projects and add the test below in each of them. ------------------- def test_carpenter_role_applied(self): s = self.student self.failUnless(isinstance(s, Student)) self.failUnless(isinstance(s, Carpenter)) s.chop() -------------------- Just to test that the model are properly roled and ran the whole test suite to see if any of my assumptions were broken. All pass! Quite happy with the result. :) Thank again to Bruno for his kind advice. ;) Best regards, Chokchai P. On Dec 4, 5:37 pm, juacompe <juaco...@gmail.com> wrote: > Good idea! I'll try that and update the post. > > I'll be out of town for a week, don't think i can code during that. so > my next post would be around the next weekend. > > Have a good day! > Chokchai P. > > On Dec 4, 12:19 am, bruno desthuilliers > > > > > > > > <bruno.desthuilli...@gmail.com> wrote: > > On 3 déc, 08:00, juacompe <juaco...@gmail.com> wrote: > > > > Hi Bruno, > > > > Thank you very much!! Adding an inner Meta class works like charm. > > > Cool 8) > > > Now beware, there _might_ be a couple other dark corners... I strongly > > suggest you take a look at ModelBase implementation and possibly > > extend your test cases, at least to make sure you spotted all possible > > side-effects of the role+model combo. -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-us...@googlegroups.com. To unsubscribe from this group, send email to django-users+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/django-users?hl=en.