1
# Copyright 2011 Canonical Ltd. This software is licensed under the
2
# GNU Affero General Public License version 3 (see the file LICENSE).
4
"""Test publisher configs handling."""
8
from canonical.testing.layers import ZopelessDatabaseLayer
9
from lp.archivepublisher.config import getPubConfig
10
from lp.testing import TestCaseWithFactory
13
class TestGetPubConfig(TestCaseWithFactory):
15
layer = ZopelessDatabaseLayer
17
def test_getPubConfig_returns_None_if_no_publisherconfig_found(self):
18
archive = self.factory.makeDistribution(no_pubconf=True).main_archive
19
self.assertEqual(None, getPubConfig(archive))