예제 #1
0
 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'])
예제 #2
0
 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"])
예제 #3
0
 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'])