コード例 #1
0
ファイル: tests.py プロジェクト: sachin0273/fundoonotes
 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)")
コード例 #2
0
ファイル: tests.py プロジェクト: sachin0273/fundoonotes
 def test__str__(self):
     note = Note(title='hi hello', note="it's important")
     self.assertNotEqual(str(note), 'hello')
コード例 #3
0
ファイル: tests.py プロジェクト: sachin0273/fundoonotes
 def test__repr__note_invalid(self):
     note = Note(title='hello', note="important", is_archive=True)
     actual = repr(note)
     self.assertNotEqual(actual, 'Note(hello,important)')
コード例 #4
0
ファイル: tests.py プロジェクト: sachin0273/fundoonotes
 def test__str__method(self):
     note = Note(title="My entry title")
     self.assertEqual(str(note), note.title)