def test_mmtf_nofilename(tmpdir): """See issue #23""" # Everyone's favourite BRD4 model u = mda.fetch_mmtf('4LYI') with tmpdir.as_cwd(): pkas = propkatraj.get_propka(u) assert os.path.isfile('current.pka')
def u(self): top = mmtf.parse(MMTF) with mock.patch('mmtf.fetch') as mock_fetch: mock_fetch.return_value = top return mda.fetch_mmtf('173D') # string is irrelevant
def setUp(self, mock_fetch): top = mmtf.parse(MMTF) mock_fetch.return_value = top self.u = mda.fetch_mmtf('173D') # string is irrelevant