Exemple #1
0
 def test_extension_namelist_with_extension(self):
     cut = NodeDeclaration("fran/noderedis/index.js")
     cut.extension_namelist()
     self.assertItemsEqual(["fran/noderedis/index.js"], cut._extension_name)
Exemple #2
0
 def test_extension_namelist_with_relative(self):
     cut = NodeDeclaration(".lib/queue")
     cut.extension_namelist()
     self.assertItemsEqual(
         [".lib/queue.json", ".lib/queue.js", ".lib/queue.node"],
         cut._extension_name)