コード例 #1
0
 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), [])
コード例 #2
0
 def test_is_not_available(self):
     self.assertFalse(storage.juju_backend_available())