summaryrefslogtreecommitdiff
path: root/service/test/integration
diff options
context:
space:
mode:
authorGiovane <giovaneliberato@gmail.com>2015-09-21 18:10:17 -0300
committerGiovane <giovaneliberato@gmail.com>2015-09-21 18:10:17 -0300
commit8d20d0fa7ed226735daba4b0507cf0037860af71 (patch)
tree0c42b44c476dd3750e196f5cec94affdff8da6ce /service/test/integration
parentb492d6928dc757e56404a1a6f0d632658c38bc13 (diff)
#442 Creates feedback service that create tickets on leap web.
Diffstat (limited to 'service/test/integration')
-rw-r--r--service/test/integration/test_feedback_service.py14
1 files changed, 14 insertions, 0 deletions
diff --git a/service/test/integration/test_feedback_service.py b/service/test/integration/test_feedback_service.py
new file mode 100644
index 00000000..595a29ce
--- /dev/null
+++ b/service/test/integration/test_feedback_service.py
@@ -0,0 +1,14 @@
+import unittest
+from mockito import when
+from twisted.internet import defer
+from test.support.integration import AppTestClient
+
+
+class TestFeedbackService(unittest.TestCase, AppTestClient):
+ @defer.inlineCallbacks
+ def test_open_ticket(self):
+ yield self.start_client()
+ when(self.leap_session).account_email().thenReturn("text@pixelated-project.org")
+ response = self.feedback_service.open_ticket("Pixelated is awesome!")
+
+ self.assertEquals(response.status_code, 200)