def test_report(self): report = action_invoker.OstreeContentUpdateActionReport() remotes = model.OstreeRemotes() remote = model.OstreeRemote() remote.url = "http://example.com" remote.name = "example-remote" remote.gpg_verify = "true" remotes.add(remote) report.remote_updates = remotes text = "%s" % report # FIXME: validate format self.assertTrue(text != "")
def test_print_empty(self): report = action_invoker.OstreeContentUpdateActionReport() text = "%s" % report self.assertTrue(text != "")
def test_updates_empty(self): report = action_invoker.OstreeContentUpdateActionReport() self.assertEquals(report.updates(), 0)
def test_empty(self): report = action_invoker.OstreeContentUpdateActionReport() self.assertEquals(report.remote_updates, [])