<s> from django . test import TestCase <EOL> from django_seo_js . tests . utils import override_settings <EOL> from django_seo_js . backends import PrerenderIO , SelectedBackend , SEOBackendBase , TestBackend <EOL> class SEOBackendBaseTest ( TestCase ) : <EOL> def setUp ( self ) : <EOL> self . backend = SEOBackendBase ( ) <EOL> def test_get_response_for_url ( self ) : <EOL> self . assertRaises ( NotImplementedError , self . backend . get_response_for_url , "<STR_LIT>" ) <EOL> def test_update_url ( self ) : <EOL> self . assertRaises ( NotImplementedError , self . backend . update_url , "<STR_LIT>" ) <EOL> class SelectedBackendTest ( TestCase ) : <EOL> def test_default_backend ( self ) : <EOL> s = SelectedBackend ( ) <EOL> self . assertTrue ( isinstance ( s . backend , PrerenderIO ) ) <EOL> @ override_settings ( BACKEND = '<STR_LIT>' ) <EOL> def test_override_backend ( self ) : <EOL> s = SelectedBackend ( ) <EOL> self . assertTrue ( isinstance ( s . backend , TestBackend ) ) </s>
