def test_get_pstype_dict(self): """Test get_pstype_dict.""" d = PSSearch.get_pstype_dict() self.assertIsInstance(d, dict) pstypes_d = sorted(list(d.keys())) pstypes = sorted(PSSearch.get_pstype_names()) self.assertEqual(pstypes_d, pstypes)
def test_get_pstype_names(self): """Test get_pstype_names.""" pstypes = PSSearch.get_pstype_names() self.assertIsInstance(pstypes, list) for pstype in pstypes: self.assertIsInstance(pstype, str)