Ejemplo n.º 1
0
    def test_show_note_success(self):
        note = '''################## TITLE ##################
testnote
=================== META ==================
Created: 01.01.1970      Updated:01.01.1970     \n'''\
'''----------------- CONTENT -----------------
Tags: tag1, tag2, tag3
##note content\n\n\n'''
        showNote(NoteStub())
        sys.stdout.seek(0)
        self.assertEquals(sys.stdout.read(), note)
Ejemplo n.º 2
0
    def test_show_note_success(self):
        note = '''################## TITLE ##################
testnote
=================== META ==================
Created: 01.01.1970      Updated:01.01.1970     \n'''\
'''----------------- CONTENT -----------------
Tags: tag1, tag2, tag3
##note content\n\n\n'''
        showNote(NoteStub())
        sys.stdout.seek(0)
        self.assertEquals(sys.stdout.read(), note)
Ejemplo n.º 3
0
    def test_show_note_success(self):
        note = '''################## TITLE ##################
testnote
=================== META ==================
Created: 2004-09-16     \nUpdated: 2004-09-16     \n'''\
'''|||||||||||||||| REMINDERS ||||||||||||||||
Order: None Time: None Done: None
----------------- CONTENT -----------------
Tags: tag1, tag2, tag3
##note content\n\n'''
        showNote(NoteStub())
        sys.stdout.seek(0)
        self.assertEqual(sys.stdout.read(), note)
Ejemplo n.º 4
0
    def test_show_note_success(self):
        note = '''################### URL ###################
NoteLink: https://www.evernote.com/shard/222/nl/111/12345
WebClientURL: https://www.evernote.com/Home.action?#n=12345
################## TITLE ##################
testnote
=================== META ==================
Created: 2004-09-17
Updated: 2004-09-17
|||||||||||||||| REMINDERS ||||||||||||||||
Order: None
Time: None
Done: None
----------------- CONTENT -----------------
Tags: tag1, tag2, tag3
##note content\n\n'''
        showNote(NoteStub(), UserStub().id, UserStub().shardId)
        sys.stdout.seek(0)
        self.assertEquals(sys.stdout.read(), note)
Ejemplo n.º 5
0
    def test_show_note_success(self):
        note = '''################### URL ###################
NoteLink: https://www.evernote.com/shard/222/nl/111/12345
WebClientURL: https://www.evernote.com/Home.action?#n=12345
################## TITLE ##################
testnote
=================== META ==================
Created: 2004-09-17
Updated: 2004-09-17
|||||||||||||||| REMINDERS ||||||||||||||||
Order: None
Time: None
Done: None
----------------- CONTENT -----------------
Tags: tag1, tag2, tag3
##note content\n\n'''
        showNote(NoteStub(), UserStub().id, UserStub().shardId)
        sys.stdout.seek(0)
        self.assertEquals(sys.stdout.read(), note)