def test_view_template(self):
     instance = plugin.WirecloudView()
     self.assertEqual(instance.view_template(None, None),
                      "wirecloud_view.html")
    def test_get_helpers(self):
        instance = plugin.WirecloudView()
        helpers = instance.get_helpers()

        for key, helper in six.iteritems(helpers):
            self.assertTrue(callable(helper))
 def test_info_returns_dict(self):
     instance = plugin.WirecloudView()
     self.assertTrue(isinstance(instance.info(), dict))
 def test_can_view_returns_false(self):
     instance = plugin.WirecloudView()
     self.assertFalse(instance.can_view({}))