def test_valid_uri_parsing(self):
        valid_uri = 's3://SOMEUSER:SOME/PASS@some_bucket/some_dir/some_file.mpg'
        values = get_values_from_media_uri(valid_uri)

        self.assertEqual(values['protocol'], 's3')
        self.assertEqual(values['username'], 'SOMEUSER')
        self.assertEqual(values['password'], 'SOME/PASS')
        self.assertEqual(values['host'], 'some_bucket')
        self.assertEqual(values['path'], 'some_dir/some_file.mpg')
        self.assertEqual(values.has_key('port'), False)
Test a valid URI with most options specified (aside from port).
dataset/ETHPy150Open duointeractive/media-nommer/media_nommer/utils/tests.py/MediaUriParsingTests.test_valid_uri_parsing