snap.backends.repos.mock.Mock.backup_called

Here are the examples of the python api snap.backends.repos.mock.Mock.backup_called taken from open source projects. By voting up you can indicate which examples are most useful and appropriate.

1 Examples 7

Example 1

Project: snap Source File: snaptest.py
Function: test_backup
    def testBackup(self):
        self.snapbase.backup()

        self.assertTrue(snap.backends.repos.mock.Mock.backup_called)
        self.assertTrue(snap.backends.packages.mock.Mock.backup_called)
        self.assertTrue(snap.backends.files.mock.Mock.backup_called)
        self.assertTrue(snap.backends.services.mock.Mock.backup_called)

        self.assertTrue(os.path.exists(snap.config.options.snapfile))
        os.remove(snap.config.options.snapfile)