def test_remove_keywords(self): self.assertEqual("SQLWarning", parse_utils.remove_keywords("Class SQLWarning")) self.assertEqual("StandardCopyOption", parse_utils.remove_keywords("Enum StandardCopyOption")) self.assertEqual("DriverAction", parse_utils.remove_keywords("Interface DriverAction")) self.assertEqual("Native", parse_utils.remove_keywords("Annotation Type Native")) self.assertEqual('', parse_utils.remove_keywords([]))
def test_remove_keywords(self): self.assertEqual("SQLWarning", parse_utils.remove_keywords("Class SQLWarning")) self.assertEqual( "StandardCopyOption", parse_utils.remove_keywords("Enum StandardCopyOption")) self.assertEqual("DriverAction", parse_utils.remove_keywords("Interface DriverAction")) self.assertEqual("Native", parse_utils.remove_keywords("Annotation Type Native")) self.assertEqual('', parse_utils.remove_keywords([]))
def test_remove_keywords(self): self.assertEqual("SQLWarning", parse_utils.remove_keywords("Class SQLWarning")) self.assertEqual("StandardCopyOption", parse_utils.remove_keywords("Enum StandardCopyOption")) self.assertEqual("DriverAction", parse_utils.remove_keywords("Interface DriverAction")) self.assertEqual("Native", parse_utils.remove_keywords("Annotation Type Native")) self.assertEqual("ArrayList", parse_utils.remove_keywords("ArrayList<E>")) self.assertEqual("DefaultRowSorter", parse_utils.remove_keywords("DefaultRowSorter<M,I>")) self.assertEqual("ThreadLocal", parse_utils.remove_keywords("ThreadLocal<T>")) self.assertEqual('', parse_utils.remove_keywords([]))