summaryrefslogtreecommitdiff
path: root/service/test/integration/test_feedback_service.py
diff options
context:
space:
mode:
Diffstat (limited to 'service/test/integration/test_feedback_service.py')
-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)