'Build output format control'

def test_build_respects_pdf_flag(self):

    project = get(Project, slug='project-1', documentation_type='sphinx', conf_py_file='test_conf.py', enable_pdf_build=True, enable_epub_build=False, versions=[fixture()])
    version = project.versions.all()[0]
    build_env = LocalEnvironment(project=project, version=version, build={})
    python_env = Virtualenv(version=version, build_env=build_env)
    config = ConfigWrapper(version=version, yaml_config=create_load()()[0])
    task = UpdateDocsTask(build_env=build_env, project=project, python_env=python_env, version=version, search=False, localmedia=False, config=config)
    task.build_docs()
    self.mocks.html_build.assert_called_once_with()
    self.mocks.pdf_build.assert_called_once_with()
    self.assertFalse(self.mocks.epub_build.called)
