def test_invalid_sharedsecret_file(self): fs.CreateFile('/etc/salt/master.d/sharedsecret.conf', contents='sharedsecret = my-precious-key') key = sharedsecret.show() fs.RemoveFile('/etc/salt/master.d/sharedsecret.conf') assert key is None
def test_no_sharedsecret_file(self): assert sharedsecret.show() is None