示例#1
0
 def test_from_version_and_to_version(self, upgrade):
     persister = Mock()
     upgrade(persister, from_version='0.1', to_version='0.2')
     persister.upgrade.assert_called_with(from_version='0.1',
                                          to_version='0.2')
示例#2
0
 def test_from_version_and_to_version(self, upgrade):
     persister = Mock()
     upgrade(persister, from_version='0.1', to_version='0.2')
     persister.upgrade.assert_called_with(from_version='0.1',
                                          to_version='0.2')
示例#3
0
 def test_no_args(self, upgrade):
     persister = Mock()
     upgrade(persister)
     persister.upgrade.assert_called_with(from_version=None)
示例#4
0
 def test_no_args(self, upgrade):
     persister = Mock()
     upgrade(persister)
     persister.upgrade.assert_called_with(from_version=None)