def test_load_py_settings_with_settings_d(self, mock_py, mock_listdir):
        py_settings = load_py_settings(test_files_dir + '/settings.d/')

        self.assertIn('SOCIAL_NETWORK_ENABLED', py_settings)
        self.assertTrue(py_settings['SOCIAL_NETWORK_ENABLED'])

        self.assertIn('EMAIL_PORT', py_settings)
        self.assertEquals(py_settings['EMAIL_PORT'], 25)

        self.assertIn('TEST', py_settings)
        self.assertEquals(py_settings['TEST'], 'test')