def test_swap_memory(self): self.assertDictEqual( { 'used': 500, 'total': 1000, 'percent': 50, 'free': 500, 'sin': 0, 'sout': 0 }, ps.swap_memory())
def test_swap_memory(self): with patch('salt.utils.psutil_compat.swap_memory', MagicMock(return_value=STUB_SWAP_MEM)): self.assertDictEqual( { 'used': 500, 'total': 1000, 'percent': 50, 'free': 500, 'sin': 0, 'sout': 0 }, ps.swap_memory())
def test_swap_memory(self): with patch( "salt.utils.psutil_compat.swap_memory", MagicMock(return_value=STUB_SWAP_MEM), ): self.assertDictEqual( { "used": 500, "total": 1000, "percent": 50, "free": 500, "sin": 0, "sout": 0, }, ps.swap_memory(), )
def test_swap_memory(self): self.assertDictEqual( {"used": 500, "total": 1000, "percent": 50, "free": 500, "sin": 0, "sout": 0}, ps.swap_memory() )
def test_swap_memory(self): self.assertDictEqual({'used': 500, 'total': 1000, 'percent': 50, 'free': 500, 'sin': 0, 'sout': 0}, ps.swap_memory())