Beispiel #1
0
 def test41_userbook_add_note_empty_fail(self):
     book = UserBook(**self.user_book_kwargs)
     with self.assertRaises(AssertionError):
         self.assertTrue(book.add_note(''))
Beispiel #2
0
 def test42_userbook_add_note_wrong_type_fail(self):
     book = UserBook(**self.user_book_kwargs)
     with self.assertRaises(AssertionError):
         self.assertTrue(book.add_note(123))
Beispiel #3
0
 def test40_userbook_add_note_success(self):
     book = UserBook(**self.user_book_kwargs)
     book.add_note('new note')
     self.assertEqual(book.notes, ['new note'])