コード例 #1
0
    def test_create_dup_snippet(self):
        sm = SnippetManager()
        try:
            out = sm.createSnippetDoc('testDoc')
        except LookupError:
            out = "exception"

        self.assertEqual( out, "exception" )
コード例 #2
0
    def test_create_snippet(self):
        sm = SnippetManager()
        sm.createSnippetDoc('new')

        self.assertTrue('new' in self.folder)