def test_get_all(self): ''' Test if it return a list of all available services. ''' with patch.object(os, 'listdir', MagicMock(return_value=['/etc/service'])): self.assertListEqual(s6.get_all(), ['/etc/service'])
def test_get_all(self): """ Test if it return a list of all available services. """ with patch.object(os, "listdir", MagicMock(return_value=["/etc/service"])): self.assertListEqual(s6.get_all(), ["/etc/service"])