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

def test_get_value_for_org(self):

    SiteConfigurationFactory.create(site=self.site, values=self.test_config1)
    SiteConfigurationFactory.create(site=self.site2, values=self.test_config2)
    self.assertEqual(SiteConfiguration.get_value_for_org(self.test_config1['course_org_filter'], 'university'), self.test_config1['university'])
    self.assertEqual(SiteConfiguration.get_value_for_org(self.test_config1['course_org_filter'], 'platform_name'), self.test_config1['platform_name'])
    self.assertEqual(SiteConfiguration.get_value_for_org(self.test_config1['course_org_filter'], 'SITE_NAME'), self.test_config1['SITE_NAME'])
    self.assertEqual(SiteConfiguration.get_value_for_org(self.test_config1['course_org_filter'], 'css_overrides_file'), self.test_config1['css_overrides_file'])
    self.assertEqual(SiteConfiguration.get_value_for_org(self.test_config1['course_org_filter'], 'ENABLE_MKTG_SITE'), self.test_config1['ENABLE_MKTG_SITE'])
    self.assertEqual(SiteConfiguration.get_value_for_org(self.test_config2['course_org_filter'], 'university'), self.test_config2['university'])
    self.assertEqual(SiteConfiguration.get_value_for_org(self.test_config2['course_org_filter'], 'platform_name'), self.test_config2['platform_name'])
    self.assertEqual(SiteConfiguration.get_value_for_org(self.test_config2['course_org_filter'], 'SITE_NAME'), self.test_config2['SITE_NAME'])
    self.assertEqual(SiteConfiguration.get_value_for_org(self.test_config2['course_org_filter'], 'css_overrides_file'), self.test_config2['css_overrides_file'])
    self.assertEqual(SiteConfiguration.get_value_for_org(self.test_config2['course_org_filter'], 'ENABLE_MKTG_SITE'), self.test_config2['ENABLE_MKTG_SITE'])
    self.assertEqual(SiteConfiguration.get_value_for_org(self.test_config1['course_org_filter'], 'non-existent', 'dummy-default-value'), 'dummy-default-value')
    self.assertEqual(SiteConfiguration.get_value_for_org(self.test_config2['course_org_filter'], 'non-existent', 'dummy-default-value'), 'dummy-default-value')
    self.assertEqual(SiteConfiguration.get_value_for_org('non-existent-org', 'platform_name', 'dummy-default-value'), 'dummy-default-value')
