#NEWLINE# def test_cgroupsSuggestsRealSystem( self ) : #NEWLINE# #INDENT# '\n        If the platform is Linux, and the cgroups file (faked out here) exists,\n        and none of the paths starts with C{/docker/}, C{isDocker()} returns\n        C{False}.\n        ' #NEWLINE# cgroupsFile = self . mktemp ( ) #NEWLINE# with open ( cgroupsFile , 'wb' ) as f : #NEWLINE# #INDENT# f . write ( b'9:perf_event:/\n8:blkio:/\n7:net_cls:/\n6:freezer:/\n5:devices:/\n4:memory:/\n3:cpuacct,cpu:/\n2:cpuset:/\n1:name=systemd:/system' ) #NEWLINE# #UNINDENT# platform = Platform ( None , 'linux' ) #NEWLINE# self . assertFalse ( platform . isDocker ( _initCGroupLocation = cgroupsFile ) )