'If C{fancybasename} is present, C{__str__} uses it instead of the class name.'

def test_fancybasename(self):

    class Foo(util.FancyStrMixin, ):
        fancybasename = 'Bar'
    self.assertEqual(str(Foo()), '<Bar>')
