def test_it_clears_channel_last_error(self):
    self.channel.last_error = 'Something went wrong'
    self.channel.save()
    self.client.login(username='example@example.com', password='password')
    self.client.post(self.url, {})
    self.channel.refresh_from_db()
    self.assertEqual(self.channel.last_error, '')
def test_it_clears_channel_last_error(self):
    self.channel.last_error = 'Something went wrong'
    self.channel.save()
    self.client.login(username='example@example.com', password='password')
    self.client.post(self.url, {})
    self.channel.refresh_from_db()
    self.assertEqual(self.channel.last_error, )