#NEWLINE# def test_is_cpu_control_policy_capable_ok( self ) : #NEWLINE# #INDENT# m = mock . mock_open ( read_data = 'cg /cgroup/cpu,cpuacct cg opt1,cpu,opt3 0 0\ncg /cgroup/memory cg opt1,opt2 0 0\n' ) #NEWLINE# with mock . patch ( 'six.moves.builtins.open' , self , create = True ) : #NEWLINE# #INDENT# self . assertTrue ( self . host . is_cpu_control_policy_capable ( ) )