f46ac7aeee82e63a38d078a7bcde630c5668b0ed,contrib/node/tests/python/pants_test/contrib/node/tasks/test_node_task.py,NodeTaskTest,test_is_node_module,#NodeTaskTest#,37
Before Change
def test_is_node_module(self):
self.assertTrue(NodeTask.is_node_module(self.make_target(":a", NodeModule)))
self.assertFalse(NodeTask.is_node_module(self.make_target(":b", NodeRemoteModule)))
self.assertFalse(NodeTask.is_node_module(self.make_target(":c", Target)))
def test_is_node_remote_module(self):
self.assertTrue(NodeTask.is_node_remote_module(self.make_target(":a", NodeRemoteModule)))
After Change
self.assertEqual(expected, self._type_check(expected.keys(), NodeTask.is_npm_package))
def test_is_node_module(self):
expected = {
NodeRemoteModule: False,
NodeModule: True,
NpmTest: False,
Target: False,
}
self.assertEqual(expected, self._type_check(expected.keys(), NodeTask.is_node_module))
def test_is_node_remote_module(self):
expected = {
In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 6
Instances
Project Name: pantsbuild/pants
Commit Name: f46ac7aeee82e63a38d078a7bcde630c5668b0ed
Time: 2015-10-29
Author: christopher.pesto@gmail.com
File Name: contrib/node/tests/python/pants_test/contrib/node/tasks/test_node_task.py
Class Name: NodeTaskTest
Method Name: test_is_node_module
Project Name: pantsbuild/pants
Commit Name: f46ac7aeee82e63a38d078a7bcde630c5668b0ed
Time: 2015-10-29
Author: christopher.pesto@gmail.com
File Name: contrib/node/tests/python/pants_test/contrib/node/tasks/test_node_task.py
Class Name: NodeTaskTest
Method Name: test_is_node_remote_module
Project Name: pantsbuild/pants
Commit Name: f46ac7aeee82e63a38d078a7bcde630c5668b0ed
Time: 2015-10-29
Author: christopher.pesto@gmail.com
File Name: contrib/node/tests/python/pants_test/contrib/node/tasks/test_node_task.py
Class Name: NodeTaskTest
Method Name: test_is_npm_package