'Test copy_uri_options returns proper MongoDB URIs.'

def test_copy_uri_options(self):

    uri = 'mongodb://host:27017/db?maxPoolSize=1234&w=2'
    self.assertEqual(Connector.copy_uri_options('a:123,[::1]:321', uri), 'mongodb://a:123,[::1]:321/?maxPoolSize=1234&w=2')
    uri = 'host:27017'
    self.assertEqual(Connector.copy_uri_options('a:123,[::1]:321', uri), 'mongodb://a:123,[::1]:321')
