Exemple #1
0
 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)")
Exemple #2
0
 def test__str__(self):
     note = Note(title='hi hello', note="it's important")
     self.assertNotEqual(str(note), 'hello')
Exemple #3
0
 def test__repr__note_invalid(self):
     note = Note(title='hello', note="important", is_archive=True)
     actual = repr(note)
     self.assertNotEqual(actual, 'Note(hello,important)')
Exemple #4
0
 def test__str__method(self):
     note = Note(title="My entry title")
     self.assertEqual(str(note), note.title)