'Test that get_dict returns correct value for any given key.'

@with_site_configuration(configuration=test_config)
def test_get_dict(self):

    self.assertItemsEqual(configuration_helpers.get_dict('REGISTRATION_EXTRA_FIELDS'), test_config['REGISTRATION_EXTRA_FIELDS'])
    default = {'test1': 123, 'first_name': 'Test'}
    expected = default
    expected.update(test_config['REGISTRATION_EXTRA_FIELDS'])
    self.assertItemsEqual(configuration_helpers.get_dict('REGISTRATION_EXTRA_FIELDS', default), expected)
