Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/CeibalEncuestaWeb/tests.py
diff options
context:
space:
mode:
Diffstat (limited to 'CeibalEncuestaWeb/tests.py')
-rw-r--r--CeibalEncuestaWeb/tests.py26
1 files changed, 25 insertions, 1 deletions
diff --git a/CeibalEncuestaWeb/tests.py b/CeibalEncuestaWeb/tests.py
index 1fed945..43aa484 100644
--- a/CeibalEncuestaWeb/tests.py
+++ b/CeibalEncuestaWeb/tests.py
@@ -5,7 +5,7 @@ import sys
from fabric.api import local
-from CeibalEncuesta import WebServer
+from CeibalEncuesta import WebServer, Browser
@contextlib.contextmanager
@@ -52,6 +52,30 @@ class WebServerTest(unittest.TestCase):
webserver.stop()
+class MockWebKit(object):
+
+ def WebView(self):
+ pass
+
+
+class MockGTK(object):
+
+ def ScrolledWindow(self):
+ pass
+
+ def main(self):
+ pass
+
+
+class CeibalEncuestaTest(unittest.TestCase):
+
+ def test_open_browser(self):
+ web_render = MockWebKit()
+ widget_toolkit = MockGTK()
+ b = Browser(web_render, widget_toolkit)
+ b.start()
+
+
if __name__ == '__main__':
unittest.main()