<s> from haproxy_manager . haproxy import Haproxy <EOL> import unittest <EOL> FILE_CONTENTS = """<STR_LIT>""" <EOL> class HaproxyTest ( unittest . TestCase ) : <EOL> def setUp ( self ) : <EOL> self . clazz = Haproxy ( '<STR_LIT>' ) <EOL> def test_concat_files ( self ) : <EOL> self . assertEqual ( self . clazz . concat_files ( ) , FILE_CONTENTS ) <EOL> def test_write_config ( self ) : <EOL> self . clazz . write_config ( self . clazz . concat_files ( ) ) <EOL> self . assertEqual ( <EOL> open ( "<STR_LIT>" ) . read ( ) , FILE_CONTENTS <EOL> ) <EOL> def test_restart ( self ) : <EOL> self . clazz . restart ( ) </s>
