예제 #1
0
    def test_delete_note(self):
        src = _path('my note.md')
        src_asset = _path('assets/my note/foo.jpg')

        self.assertTrue(exists(src))
        self.assertTrue(exists(src_asset))

        note = Note(src)
        note.delete()

        self.assertFalse(exists(src))
        self.assertFalse(exists(src_asset))
예제 #2
0
    def test_delete_note(self):
        src = _path('my note.md')
        src_resource = _path('_resources/my note/foo.jpg')

        self.assertTrue(exists(src))
        self.assertTrue(exists(src_resource))

        note = Note(src)
        note.delete()

        self.assertFalse(exists(src))
        self.assertFalse(exists(src_resource))
예제 #3
0
파일: note_test.py 프로젝트: 447327642/wkk
    def test_delete_note(self):
        src = _path('my note.md')
        src_resource = _path('_resources/my note/foo.jpg')

        self.assertTrue(exists(src))
        self.assertTrue(exists(src_resource))

        note = Note(src)
        note.delete()

        self.assertFalse(exists(src))
        self.assertFalse(exists(src_resource))