Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
def test_synnodes(self):
synnodes1 = SynNodes(self.str1)
self.assertIn(0, synnodes1.tagids)
self.assertIn(1, synnodes1.parentids)
self.assertEqual(synnodes1.dpndtype, 'D')
self.assertEqual(synnodes1.midasi, '景気が')
self.assertEqual(synnodes1.feature, '<格解析結果:ガ格>')
synnodes2 = SynNodes(self.str2)
self.assertIn(0, synnodes2.tagids)
self.assertIn(1, synnodes2.tagids)
self.assertIn(-1, synnodes2.parentids)
self.assertEqual(synnodes2.dpndtype, 'D')
self.assertEqual(synnodes2.midasi, '冷え込む')
self.assertEqual(synnodes2.feature, '')
def test_synnodes(self):
synnodes1 = SynNodes(self.str1)
self.assertIn(0, synnodes1.tagids)
self.assertIn(1, synnodes1.parentids)
self.assertEqual(synnodes1.dpndtype, 'D')
self.assertEqual(synnodes1.midasi, '景気が')
self.assertEqual(synnodes1.feature, '<格解析結果:ガ格>')
synnodes2 = SynNodes(self.str2)
self.assertIn(0, synnodes2.tagids)
self.assertIn(1, synnodes2.tagids)
self.assertIn(-1, synnodes2.parentids)
self.assertEqual(synnodes2.dpndtype, 'D')
self.assertEqual(synnodes2.midasi, '冷え込む')
self.assertEqual(synnodes2.feature, '')