Beispiel #1
0
 def test19_bookcoll_pop_not_found_success(self):
     book_collection = BookCollection(**self.valid_bookcoll_kwargs)
     self.assertFalse(book_collection.pop(self.test_book1.isbn, None),
                      self.test_book1)
Beispiel #2
0
 def test18_bookcoll_pop_success(self):
     book_collection = BookCollection(**self.valid_bookcoll_kwargs)
     book_collection[self.test_book1.isbn] = self.test_book1
     self.assertEqual(book_collection.pop(self.test_book1.isbn),
                      self.test_book1)