fixed test for svn.export

This commit is contained in:
Alexander Duryagin 2018-05-07 17:39:04 +03:00 committed by rallytime
parent e79f4aa5cc
commit ebcd3b1c6b
No known key found for this signature in database
GPG key ID: E8F1A4B90D0DEA19

View file

@ -104,13 +104,18 @@ class SvnTestCase(TestCase, LoaderModuleMockMixin):
with patch.dict(svn.__opts__, {'test': False}):
mock = MagicMock(return_value=True)
with patch.dict(svn.__salt__, {'svn.export': mock}):
self.assertDictEqual(svn.export("salt",
"c://salt"),
{'changes': 'salt was Exported'
' to c://salt', 'comment': '',
'name': 'salt', 'result': True
}
)
self.assertDictEqual(
svn.export("salt", "c://salt"),
{
'changes': {
'new': 'salt',
'comment': 'salt was Exported to c://salt',
},
'comment': '',
'name': 'salt',
'result': True,
}
)
def test_dirty(self):
'''