def testGetExternalConfigurationAsFileWhenNotIsdir(self):
    mock_open = self.mox.CreateMockAnything()
    mock_fh = self.mox.CreateMockAnything()
    mock_isdir = self.mox.CreateMockAnything()
    mock_join = self.mox.CreateMockAnything()

    mock_isdir(self.settings._path).AndReturn(False)

    self.mox.ReplayAll()
    self.assertEqual(
        None, self.settings._GetExternalConfiguration(
            'name', as_file=True,
            open_=mock_open, isdir_=mock_isdir, join_=mock_join))
    self.mox.VerifyAll()
Create a new element (namespaceURI,name), append it
dataset/ETHPy150Open google/simian/src/tests/simian/settings_test.py/FilesystemSettingsTest.testGetExternalConfigurationAsFileWhenNotIsdir--crossover with--dataset/ETHPy150Open AppScale/appscale/AppServer/google/appengine/api/SOAPpy/wstools/Utility.py/ElementProxy.createAppendSetElement