Пример #1
0
	def test_delete_all(self):
		notes = NotesApplication()
		notes.create("Day one at Andela BC")
		notes.create("Day two at Andela BC")
		notes.delete(1)
		notes.delete(1)
		self.assertEqual(len(notes.notes),0, msg="List should not be the same length since delete was successful")
Пример #2
0
	def test_delete_empty_list(self):
		notes = NotesApplication()
		notes.delete(1)
		notes.delete(1)
		self.assertEqual(len(notes.notes),0, msg="List should not be the same length since delete was successful")
Пример #3
0
	def test_delete_empty_argument(self):
		notes = NotesApplication()
		notes.create("Day one at Andela BC")
		notes.create("Day two at Andela BC")
		notes.delete()
		self.assertListEqual(notes.notes,["Day one at Andela BC","Day two at Andela BC"], msg="List supposed to be unchange since delet didnt affect anything")