'Testing whether the API returns the right JSON data if a channel overview is requested'

@deferred(timeout=10)
def test_get_channel_info(self):

    channel_json = {u'overview': {u'name': u'testname', u'description': u'testdescription', u'identifier': unicode('fake'.encode('hex'))}}
    self.insert_channel_in_db('fake', 3, channel_json[u'overview'][u'name'], channel_json[u'overview'][u'description'])
    return self.do_request(('channels/discovered/%s' % 'fake'.encode('hex')), expected_code=200, expected_json=channel_json)
