def test_no_results(self): results = PocoSearcher.results_as_objects('kekekeke') self.assertIsInstance(results, list) self.assertEqual(len(results), 0)
def test_results_as_objects(self): results = PocoSearcher.results_as_objects('Wingate Park') self.assertIsInstance(results, list) self.assertGreater(len(results), 0) self.assertIsInstance(results[0], PocoLocation)