2 # -*- coding: utf-8 -*-
4 # This file is part of FNP-Redakcja, licensed under GNU Affero GPLv3 or later.
5 # Copyright © Fundacja Nowoczesna Polska. See NOTICE for more information.
8 from nose.tools import *
9 from nose.core import runmodule
17 self.text = "Some Text"
20 class TestWLAPI(object):
23 self.api = wlapi.WLAPI(
24 URL="http://localhost:7000/api/",
26 AUTH_USER="platforma",
27 AUTH_PASSWD="platforma",
30 def test_basic_call(self):
31 assert_equal(self.api.list_books(), [])
33 def test_publish_book(self):
34 self.api.publish_book(FakeDocument())
36 if __name__ == '__main__':