def test_dynamic_id_is_error(self):
        """
        测试请求接口动态ID不存在
        :return:
        """
        get_dynamic_detail_api = GetDynamicDetailApi(self.user_mobile)
        get_dynamic_detail_api.post({'dynamic_id': 9090999})

        self.assertEqual(get_dynamic_detail_api.get_code(), 450010)
        self.assertEqual(get_dynamic_detail_api.get_response_message(),
                         u'动态不存在')
    def test_dynamic_id_is_null(self):
        """
        测试请求接口动态ID为空
        :return:
        """
        get_dynamic_detail_api = GetDynamicDetailApi(self.user_mobile)
        get_dynamic_detail_api.post({'dynamic_id': None})

        self.assertEqual(get_dynamic_detail_api.get_code(), 450007)
        self.assertEqual(get_dynamic_detail_api.get_response_message(),
                         u'动态id不能为空')