blob: 595a29ce5015ceed96073f909ec6f884ecb82275 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
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)
|