<s> from textwrap import dedent <EOL> from ceph_deploy . util import templates <EOL> class TestCustomRepo ( object ) : <EOL> def test_only_repo_name ( self ) : <EOL> result = templates . custom_repo ( reponame = '<STR_LIT:foo>' ) <EOL> assert result == '<STR_LIT>' <EOL> def test_second_line_with_good_value ( self ) : <EOL> result = templates . custom_repo ( reponame = '<STR_LIT:foo>' , enabled = <NUM_LIT:0> ) <EOL> assert result == '<STR_LIT>' <EOL> def test_mixed_values ( self ) : <EOL> result = templates . custom_repo ( <EOL> reponame = '<STR_LIT:foo>' , <EOL> enabled = <NUM_LIT:0> , <EOL> gpgcheck = <NUM_LIT:1> , <EOL> baseurl = '<STR_LIT>' ) <EOL> assert result == dedent ( """<STR_LIT>""" ) <EOL> def test_allow_invalid_options ( self ) : <EOL> result = templates . custom_repo ( reponame = '<STR_LIT:foo>' , bar = '<STR_LIT:bar>' ) <EOL> assert result == '<STR_LIT>' </s>
