'Sending typing notification to invalid recipient fails'

def test_invalid_recipient(self):

    sender = self.example_email('hamlet')
    invalid = 'invalid    email'
    result = self.client_post('/api/v1/typing', {'op': 'start', 'to': invalid}, **self.api_auth(sender))
    self.assert_json_error(result, (("Invalid    email    '" + invalid) + "'"))
