Skip to content

Commit

Permalink
CA-176801: [UnitTest] Fix assert after changes to nfs.py
Browse files Browse the repository at this point in the history
Signed-off-by: Siddharth Vinothkumar <siddharth.vinothkumar@citrix.com>
  • Loading branch information
siddharthv committed Jul 17, 2015
1 parent e63ecbe commit 7d63a8c
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions tests/test_nfs.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,15 +10,13 @@ class Test_nfs(unittest.TestCase):
def test_check_server_tcp(self, pread):
nfs.check_server_tcp('aServer')

pread.assert_called_once_with(['/usr/sbin/rpcinfo', '-t', 'aServer',
'nfs', '3'])
pread.assert_called_once_with(['/usr/sbin/rpcinfo', '-p', 'aServer'], quiet=False)

@mock.patch('util.pread')
def test_check_server_tcp_nfsversion(self, pread):
nfs.check_server_tcp('aServer', 'aNfsversion')

pread.assert_called_once_with(['/usr/sbin/rpcinfo', '-t', 'aServer',
'nfs', 'aNfsversion'])
pread.assert_called_once_with(['/usr/sbin/rpcinfo', '-p', 'aServer'], quiet=False)

def get_soft_mount_pread(self, binary, vers):
return ([binary, 'remoteserver:remotepath', 'mountpoint', '-o',
Expand Down

0 comments on commit 7d63a8c

Please sign in to comment.