def test_onproduction_on_standard_prod_is_true(self):

        env = self.mockEnvironmentDeploy
        env['PLATFORM_BRANCH'] = 'master'

        config = Config(env)

        self.assertTrue(config.on_production())
    def test_onproduction_on_standard_stg_is_false(self):

        # The fixture has a non-master branch set by default.

        env = self.mockEnvironmentDeploy

        config = Config(env)

        self.assertFalse(config.on_production())
    def test_onproduction_on_dedicated_stg_is_false(self):

        env = self.mockEnvironmentDeploy
        env['PLATFORM_MODE'] = 'enterprise'
        env['PLATFORM_BRANCH'] = 'staging'

        config = Config(env)

        self.assertFalse(config.on_production())
    def test_onproduction_on_dedicated_prod_is_true(self):

        env = self.mockEnvironmentDeploy
        env['PLATFORM_MODE'] = 'enterprise'
        env['PLATFORM_BRANCH'] = 'production'

        config = Config(env)

        self.assertTrue(config.on_production())