Пример #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
    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))