def test_is_available(self): fake_script(self, 'state-get', 'echo ""') self.assertTrue(storage.juju_backend_available()) self.assertEqual(fake_script_calls(self, clear=True), [])
def test_is_not_available(self): self.assertFalse(storage.juju_backend_available())