Ejemplo n.º 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')
Ejemplo n.º 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')
Ejemplo n.º 3
0
 def test_no_args(self, upgrade):
     persister = Mock()
     upgrade(persister)
     persister.upgrade.assert_called_with(from_version=None)
Ejemplo n.º 4
0
 def test_no_args(self, upgrade):
     persister = Mock()
     upgrade(persister)
     persister.upgrade.assert_called_with(from_version=None)