+
+
+
+class CleanTagRelationTests(TestCase):
+ """ tests for tag relations cleaning after deleting things """
+
+ def setUp(self):
+ author = PersonStub(("Common",), "Man")
+
+ book_info = BookInfoStub(author=author, genre="G", epoch='E', kind="K",
+ **info_args(u"Book"))
+ book_text = """<utwor><opowiadanie><akap>
+ <begin id="m01" /><motyw id="m01">Theme</motyw>Ala ma kota
+ <end id="m01" />
+ </akap></opowiadanie></utwor>
+ """
+ book = models.Book.from_text_and_meta(ContentFile(book_text), book_info)
+ book.save()