'Test class override setting defined'

@override_settings(FOO_OVERRIDE_CLASS=EXTEND_OVERRIDE_PATH)
def test_with_basic_override(self):

    class Foo(SettingsOverrideObject, ):
        _default_class = FooBase
        _override_setting = 'FOO_OVERRIDE_CLASS'
    foo = Foo()
    self.assertEqual(foo.__class__.__name__, 'NewFoo')
    self.assertEqual(foo.bar(), 2)
    self.assertEqual(Foo.baz(), 2)
    override_class = get_override_class(Foo, Foo._default_class)
    self.assertEqual(override_class, NewFoo)
