'Sending typing notification with invalid value for op parameter fails'

def test_invalid_parameter(self):

    sender = self.example_email('hamlet')
    recipient = self.example_email('othello')
    result = self.client_post('/api/v1/typing', {'to': recipient, 'op': 'foo'}, **self.api_auth(sender))
    self.assert_json_error(result, "Invalid    'op'    value    (should    be    start    or    stop)")
