Untitled

mail@pastecode.io avatar
unknown
plain_text
a year ago
530 B
3
Indexable
Never
    @patch.object(MultipleList, "get_user_list_count")
    def test_400_list_limit_exceeded_error(self, get_user_list_count_mock):
        get_user_list_count_mock.return_value = 100

        response = self.app.post(
            self.path,
            headers=self.headers,
            content_type='application/json',
            data=json.dumps({
                'name': 'My Favorite',
                'description': 'Some description'
            })
        )
        data = json.loads(response.get_data())
        print(data)