<s> """<STR_LIT>""" <EOL> from __future__ import division , print_function , absolute_import <EOL> import os <EOL> from distutils . dist import Distribution <EOL> from distutils . cmd import Command <EOL> from pyscaffold import integration <EOL> from setuptools_scm . version import ScmVersion <EOL> import pytest <EOL> __author__ = "<STR_LIT>" <EOL> __copyright__ = "<STR_LIT>" <EOL> __license__ = "<STR_LIT>" <EOL> def test_version2str ( ) : <EOL> ver = ScmVersion ( '<STR_LIT:1.0>' , distance = <NUM_LIT:0> ) <EOL> ver_str = integration . version2str ( ver ) <EOL> assert ver_str == '<STR_LIT:1.0>' <EOL> ver = ScmVersion ( '<STR_LIT:1.0>' , distance = <NUM_LIT:1> ) <EOL> ver_str = integration . version2str ( ver ) <EOL> assert ver_str == '<STR_LIT>' <EOL> ver = ScmVersion ( '<STR_LIT>' , distance = <NUM_LIT:1> ) <EOL> ver_str = integration . version2str ( ver ) <EOL> assert ver_str == '<STR_LIT>' <EOL> def test_local_version2str ( ) : <EOL> ver = ScmVersion ( '<STR_LIT:1.0>' , dirty = True , node = '<STR_LIT>' ) <EOL> ver_str = integration . local_version2str ( ver ) <EOL> assert ver_str == '<STR_LIT>' <EOL> ver = ScmVersion ( '<STR_LIT:1.0>' , dirty = False ) <EOL> ver_str = integration . local_version2str ( ver ) <EOL> assert ver_str == '<STR_LIT>' <EOL> ver = ScmVersion ( '<STR_LIT:1.0>' , distance = <NUM_LIT:1> , dirty = True , node = '<STR_LIT>' ) <EOL> ver_str = integration . local_version2str ( ver ) <EOL> assert ver_str == '<STR_LIT>' <EOL> ver = ScmVersion ( '<STR_LIT:1.0>' , distance = <NUM_LIT:1> , dirty = False , node = '<STR_LIT>' ) <EOL> ver_str = integration . local_version2str ( ver ) <EOL> assert ver_str == '<STR_LIT>' <EOL> def test_build_cmd_docs ( ) : <EOL> cmd = integration . build_cmd_docs ( ) <EOL> assert issubclass ( cmd , Command ) <EOL> @ pytest . mark . skipif ( bool ( os . environ . get ( '<STR_LIT>' , None ) ) , <EOL> reason = "<STR_LIT>" ) <EOL> def test_build_cmd_docs_no_sphinx ( nosphinx_mock ) : <EOL> cmd = integration . build_cmd_docs ( ) <EOL> assert cmd . __name__ == '<STR_LIT>' <EOL> def test_deactivate_pbr_authors_changelog ( ) : <EOL> integration . deactivate_pbr_authors_changelog ( ) <EOL> assert os . environ [ '<STR_LIT>' ] == "<STR_LIT:1>" <EOL> assert os . environ [ '<STR_LIT>' ] == "<STR_LIT:1>" <EOL> def test_pyscaffold_keyword ( ) : <EOL> dist = Distribution ( ) <EOL> integration . pyscaffold_keyword ( dist , '<STR_LIT>' , True ) </s>
