'Test to create a user from a site with configuration overrides and see that its record has been
saved in the UserSignupSource Table.'

@mock.patch('openedx.core.djangoapps.site_configuration.helpers.get_value', fake_site_name)
def test_user_signup_source(self):

    response = self.client.post(self.url, self.params)
    self.assertEqual(response.status_code, 200)
    self.assertGreater(len(UserSignupSource.objects.filter(site='openedx.localhost')), 0)
