def test__repr__note_new(self): note = Note(title='hi', note="important", is_archive=True) actual = repr(note) self.assertEqual(actual, "Note('hi','important',True)")
def test__str__(self): note = Note(title='hi hello', note="it's important") self.assertNotEqual(str(note), 'hello')
def test__repr__note_invalid(self): note = Note(title='hello', note="important", is_archive=True) actual = repr(note) self.assertNotEqual(actual, 'Note(hello,important)')
def test__str__method(self): note = Note(title="My entry title") self.assertEqual(str(note), note.title)