def test_valid_uri_nopass_parsing(self):
        valid_uri = 'http://SOMEUSER@some_host.com/some_dir/some_file.mpg'
        values = get_values_from_media_uri(valid_uri)

        self.assertEqual(values['protocol'], 'http')
        self.assertEqual(values['username'], 'SOMEUSER')
        self.assertEqual(values.has_key('password'), False)
        self.assertEqual(values['host'], 'some_host.com')
        self.assertEqual(values['path'], 'some_dir/some_file.mpg')
        self.assertEqual(values.has_key('port'), False)
Test a valid URI with everything but port and password specified.
dataset/ETHPy150Open duointeractive/media-nommer/media_nommer/utils/tests.py/MediaUriParsingTests.test_valid_uri_nopass_parsing