def testTemplateGet(self):
    self.assertRaises(NotImplementedError, getattr,
                      self.tempfile, 'template')
This is a more generalized form -> basically if
dataset/ETHPy150Open jmcgeheeiv/pyfakefs/fake_tempfile_test.py/FakeTempfileModuleTest.testTemplateGet--crossover with--dataset/ETHPy150Open memsql/memsql-loader/memsql_loader/vendor/glob2/impl.py/Globber.chop_dirname