def test_missing(self): ''' Test if it returns ``True`` if the specified service is not available, otherwise returns ``False``. ''' with patch.object(os, 'listdir', MagicMock(return_value=['/etc/service'])): self.assertTrue(s6.missing('foo'))
def test_missing(self): """ Test if it returns ``True`` if the specified service is not available, otherwise returns ``False``. """ with patch.object(os, "listdir", MagicMock(return_value=["/etc/service"])): self.assertTrue(s6.missing("foo"))