def test_parse_invalid_output_location(self): with self.assertRaises(DataError): AthenaPandasResultSet._parse_output_location('http://foobar')
def test_parse_output_location(self): actual = AthenaPandasResultSet._parse_output_location( 's3://bucket/path/to') self.assertEqual(actual[0], 'bucket') self.assertEqual(actual[1], 'path/to')