예제 #1
0
    def test_get_meta_site_name(self):
        m = MetadataMixin()
        self.assertEqual(
            m.get_meta_site_name(),
            None
        )

        m.site_name = 'Foo'
        self.assertEqual(
            m.get_meta_site_name(),
            'Foo'
        )
예제 #2
0
    def test_get_meta_site_name(self):
        m = MetadataMixin()
        self.assertEqual(
            m.get_meta_site_name(),
            None
        )

        m.site_name = 'Foo'
        self.assertEqual(
            m.get_meta_site_name(),
            'Foo'
        )
예제 #3
0
    def test_get_meta_site_name_with_setting(self):
        m = MetadataMixin()

        meta.settings.SITE_NAME = 'Foo'

        self.assertEqual(
            m.get_meta_site_name(),
            'Foo'
        )
예제 #4
0
    def test_get_meta_site_name_with_setting(self):
        m = MetadataMixin()

        settings.SITE_NAME = 'Foo'

        self.assertEqual(
            m.get_meta_site_name(),
            'Foo'
        )