Beispiel #1
0
 def test27_save_to_text_fail(self, *ignore):
     book_collection = BookCollection(**self.valid_bookcoll_kwargs)
     book_collection[self.test_book1.isbn] = self.test_book1
     self.assertFalse(book_collection.save_to_text())
Beispiel #2
0
 def test26_save_to_text_success(self, io_file):
     book_collection = BookCollection(**self.valid_bookcoll_kwargs)
     book_collection[self.test_book1.isbn] = self.test_book1
     self.assertTrue(book_collection.save_to_text())