def test_note_correctly_updated(self): operations.create_new_note("title", "body") operations.update_note(1, "new title", "new body") notes = operations.get_list_of_notes() self.assertEqual(1, notes.count()) self.assertEqual("new title", notes[0].title) self.assertEqual("new body", notes[0].body)
def test_valid_note_is_created(self): operations.create_new_note("title", "body") notes = operations.get_list_of_notes() self.assertEqual(1, notes.count()) self.assertEqual("title", notes[0].title) self.assertEqual("body", notes[0].body)