def test_case9(self): """Testing the getPath function for Adolescents - Level 4""" topicNames,topicPaths, topicIDs,levels = parseFile("pystsup/test/acm.txt") retrievedPath = getPath('Adolescents',topicNames,topicPaths,topicIDs) expectedPath = ['Adolescents', 'Age', 'User characteristics', 'Social and professional topics','ACM Computing Classification System'] self.assertEqual(retrievedPath,expectedPath)
def test_case8(self): """Testing the getPath function for Object recognition - Level 6""" topicNames,topicPaths, topicIDs,levels = parseFile("pystsup/test/acm.txt") retrievedPath = getPath('Object recognition',topicNames,topicPaths, topicIDs) expectedPath = ['Object recognition', 'Computer vision problems', 'Computer vision', 'Artificial intelligence', 'Computing methodologies','ACM Computing Classification System'] self.assertEqual(retrievedPath,expectedPath)
def test_case7(self): """Testing the getPath function for Survival Analysis - Level 5""" topicNames,topicPaths, topicIDs,levels = parseFile("pystsup/test/acm.txt") retrievedPath = getPath('Survival analysis',topicNames,topicPaths, topicIDs) expectedPath = ['Survival analysis', 'Statistical paradigms', 'Probability and statistics', 'Mathematics of computing','ACM Computing Classification System'] self.assertEqual(retrievedPath,expectedPath)
def test_case12(self): """Testing the getPath function for Contextual software domains - Level 4""" topicNames,topicPaths, topicIDs,levels = parseFile("pystsup/test/acm.txt") retrievedPath = getPath('Contextual software domains',topicNames,topicPaths,topicIDs) expectedPath = ['Contextual software domains','Software organization and properties','Software and its engineering','ACM Computing Classification System'] self.assertEqual(retrievedPath,expectedPath)
def test_case11(self): """Testing the getPath function for Architectures - Level 3""" topicNames,topicPaths, topicIDs,levels = parseFile("pystsup/test/acm.txt") retrievedPath = getPath('Architectures',topicNames,topicPaths,topicIDs) expectedPath = ['Architectures','Computer systems organization','ACM Computing Classification System'] self.assertEqual(retrievedPath,expectedPath)
def test_case10(self): """Testing the getPath function for General and reference - Level 2""" topicNames,topicPaths, topicIDs,levels = parseFile("pystsup/test/acm.txt") retrievedPath = getPath('General and reference',topicNames,topicPaths,topicIDs) expectedPath = ['General and reference','ACM Computing Classification System'] self.assertEqual(retrievedPath,expectedPath)