Beispiel #1
0
    def setUp(self):
        WLTestCase.setUp(self)
        self.TEXT = """<utwor />"""
        self.child = BookInfoStub(genre='X-Genre',
                                  epoch='X-Epoch',
                                  kind='X-Kind',
                                  author=PersonStub(("Joe", ), "Doe"),
                                  **info_args("Child"))

        self.parent = BookInfoStub(genre='X-Genre',
                                   epoch='X-Epoch',
                                   kind='X-Kind',
                                   author=PersonStub(("Jim", ), "Lazy"),
                                   cover_url="http://example.com/cover.jpg",
                                   parts=[self.child.url],
                                   **info_args("Parent"))
Beispiel #2
0
    def setUp(self):
        WLTestCase.setUp(self)
        self.TEXT = """<utwor />"""
        self.child = BookInfoStub(
            genre='X-Genre',
            epoch='X-Epoch',
            kind='X-Kind',
            author=PersonStub(("Joe",), "Doe"),
            **info_args("Child")
        )

        self.parent = BookInfoStub(
            genre='X-Genre',
            epoch='X-Epoch',
            kind='X-Kind',
            author=PersonStub(("Jim",), "Lazy"),
            cover_url="http://example.com/cover.jpg",
            parts=[self.child.url],
            **info_args("Parent")
        )
Beispiel #3
0
 def setUp(self):
     WLTestCase.setUp(self)
     author = PersonStub(("Jane",), "Doe")
     book_info = BookInfoStub(author=author, genre="Genre",
         epoch='Epoch', kind="Kind", **info_args(u"A book"))
     self.book = models.Book.from_text_and_meta(ContentFile('''
         <utwor>
         <opowiadanie>
             <akap>
                 <begin id="b1" />
                 <motyw id="m1">Theme</motyw>
                 Test
                 <end id="e1" />
             </akap>
         </opowiadanie>
         </utwor>
         '''), book_info)
     self.collection = models.Collection.objects.create(
         title='Biblioteczka Boya', slug='boy', book_slugs='a-book')
Beispiel #4
0
 def setUp(self):
     WLTestCase.setUp(self)
     author = PersonStub(("Jane", ), "Doe")
     book_info = BookInfoStub(author=author,
                              genre="Genre",
                              epoch='Epoch',
                              kind="Kind",
                              **info_args(u"A book"))
     self.book = models.Book.from_text_and_meta(
         ContentFile('''
         <utwor>
         <opowiadanie>
             <akap>
                 <begin id="b1" />
                 <motyw id="m1">Theme</motyw>
                 Test
                 <end id="e1" />
             </akap>
         </opowiadanie>
         </utwor>
         '''), book_info)
     self.collection = models.Collection.objects.create(
         title='Biblioteczka Boya', slug='boy', book_slugs='a-book')