예제 #1
0
 def test_attributes(self):
     '''
     Tests if specified group was added
     '''
     with patch('salt.modules.extfs.dump',
                 MagicMock(return_value={'attributes': {}, 'blocks': {}})):
         self.assertEqual({}, extfs.attributes('/dev/sda1'))
예제 #2
0
 def test_attributes(self):
     """
     Tests if specified group was added
     """
     with patch(
             "salt.modules.extfs.dump",
             MagicMock(return_value={
                 "attributes": {},
                 "blocks": {}
             }),
     ):
         self.assertEqual({}, extfs.attributes("/dev/sda1"))
예제 #3
0
파일: test_extfs.py 프로젝트: vindir/salt
 def test_attributes(self):
     '''
     Tests if specified group was added
     '''
     self.assertEqual({}, extfs.attributes('/dev/sda1'))
예제 #4
0
파일: extfs_test.py 프로젝트: DaveQB/salt
 def test_attributes(self):
     '''
     Tests if specified group was added
     '''
     self.assertEqual({}, extfs.attributes('/dev/sda1'))